How do I get my C# program to sleep for 50 milliseconds?
This might seem an easy question, but I'm having a temporary brain failure moment!
In later Windows version, the C: drive is labeled as Primary Drive or Local Disk, and can be accessed by default by opening the “My Computer” folder.
System.Threading.Thread.Sleep(50);
Remember though, that doing this in the main GUI thread will block your GUI from updating (it will feel "sluggish")
Just remove the ;
to make it work for VB.net as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With