Delay, Pause, Wait or Sleep in VB

Use SetWaitableTimer: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q231/2/98.asp&NoWebContent=1

Instead of lNumberOfSeconds As Long, I use lNumberOfSeconds As Double. So I can use 0.3 second (300 milliseconds).

Using Sleep: http://www.vbforums.com/showthread.php?t=357961

Using DoEvents and Timer: http://bytes.com/forum/post59842-8.html

Start another program using Shell and wait until it finishes: http://www.vb-helper.com/howto_shell_wait.html

How to pause and restart a thread : http://www.tek-tips.com/faqs.cfm?fid=6580

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: