Is there any way to get vb.net to wait a certain amount of time before executing the next instruction?
Printable View
Is there any way to get vb.net to wait a certain amount of time before executing the next instruction?
Try the Sleep method of the Thread class.
VB Code:
System.Threading.Thread.Sleep ' time in milliseconds '// eg: System.Threading.Thread.Sleep(10)
Add a timer control, then when it reaches the desired time, reference the next bit of code.
Is this what you're looking for?
What about the same thing in vb6?
EDIT: nevermind. found it