There may be occasions when you want an application to wait for a specified period of time without performing activity or wait loops. The Timer control can help, but only up to 60 seconds.
The Sleep Windows API function lets you put the application to sleep. Enter the following declaration into a standard module.
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Then, simply call the function from your code, as in:
Sleep 5000
In this case, the 5000 milliseconds puts the application to bed for 5 seconds. You can specify your own period of time, though.
This tip was contributed by Malcolm Wright, SIM Desktop Technical Services.
Previous Post
VB Control replacement for picturebox
VB Control replacement for picturebox
Related Posts
Internet IP AddressEvery device which can connect to the public internet has a unique assigned Internet Prot
What is CRM Software?A lot of individuals have heard the term CRM, and they have heard CRM software mentioned
Blu-ray TechnologyNew technology is now making it possible for viewers to record and store high definition
Read Registry values in VB without APIOften you'll want to manipulate the Windows registry in VisualBasic without resorting to
Use Winsock Control to download webpagesOverview:The Professional and Enterprise Editions of Visual Basic are shipped with the Wi
How to create app manifest for VB in winXPThis is a brief tutorial on creating an application manifest in Windows XP. Like we all k