VB.NET : Sleep

Posted by Fluffy | 8:53 AM | , | 0 comments »

Putting application to sleep for a specified miliseconds in VB.NET


In VB.NET, you can make an application idle ( or sleep ) for a specified miliseconds. For example, in your programming code, you might want to let your program to be idle for 500 miliseconds after executing a certain functions and then execute the next function.
Apply the code below between functions:


System.Threading.Thread.Sleep(500)


Note : The number used is in miliseconds
* 1 sec = 1000ms

0 comments