Alternative to Timer object
-
Hi! I'm quite new at VB, but i've been using VC++ for a while! I would like to know if there is some function (like sleep in c), that can be used to stop application for a determined time. I'm aware of timers and little functions (Ex. for loops..., but we don't actually have much control on the time they take...). Thank you for your time Rui
-
Hi! I'm quite new at VB, but i've been using VC++ for a while! I would like to know if there is some function (like sleep in c), that can be used to stop application for a determined time. I'm aware of timers and little functions (Ex. for loops..., but we don't actually have much control on the time they take...). Thank you for your time Rui
In VB.NET, you can use
System.Threading.Thread.Sleep(_milliseconds_)
. In VB6, you would need to import the API function:Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
In VB.NET, you can use
System.Threading.Thread.Sleep(_milliseconds_)
. In VB6, you would need to import the API function:Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer