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!
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.
;
1.4m articles
1.4m replys
5 comments
57.0k users