Another one of those quick tips that I always forget. In order to use a Sleep function in Visual Basic, include the following library declaration in any module or form:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Lets say you need to pause a programs execution by 5 seconds. You would call the function like so:
Sleep(5000)
Subscribe to:
Post Comments (Atom)
6 comments:
Thank you good sir.
thank youuuuuuuuuuu
Thanks :)
Thank you!
Thank you, i was looking for this :-)
Thanks a lot.
Simple and efficient !
Post a Comment