in VB IDE you can press CTRL+PAUSE to stop execution (you will be in debug mode) but in EXE mode you'll have to code it. Perhaps Sleep or SleepEx api functions are what you need.
I use text boxes for keyboard input. I have a sequence that prints 4 different tables in a space where only 1 table will fit. Thus i have to use a for next loop and the sleep comand. The situatin would be much better if I had a waitkey comand to replace the sleep comand so the viewer could go on to the the next table whenever he wished>
As I said you'd ahve to code it yourself - Do While loop comes to mind. Sleep wouldn't work for what you want to do - it simply suspends execution for specific number of milliseconds.
So, what you might need to is to declare some boolean flag and when any of you "tables" entered set flag to true and begin looping until user responds somehow (hit Enter key or some "Continue" button on your form.
Here is a quick sample:
VB Code:
Option Explicit
Dim blnStop As Boolean
Private Sub Text1_LostFocus()
blnStop = True
WaitForRespond 'or you may turn on timer for some number of seconds or minutes
End Sub
Private Sub WaitForRespond()
Do While blnStop
DoEvents 'not best way all around but will work
Loop
End Sub
'you will have to come up with some idea on how to let user continue
'so you would stop looping and get next entry in that textbox
'...
Last edited by RhinoBull; Nov 15th, 2005 at 11:40 PM.