Sleep, Using The Win32 API in VB6
Category:
System/APIType:
SnippetsDifficulty:
IntermediateAuthor:
FrancisVersion Compatibility: Visual Basic 6
More information:
The easy way to sleep in VB6. The Sleep method places the script process into an inactive state for the number of milliseconds specified and then continues execution. This is a basic example using the MsgBox function. For a more detailed example, the MSDN Library has a Windows Script Host sample that uses the Windows Calculator.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: