How do I make a delay function (e.g like the one in Pascal) ??
Printable View
How do I make a delay function (e.g like the one in Pascal) ??
Add this to the top of your form:
To use, just call Sleep(100) to sleep for 100ms.Code:Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds as Long)
Thank you