Wednesday, February 11, 2009

Time Delay C#

If you want to make a time delay in C# (Pause your program for any purpose) you may use this line

System.Threading.Thread.Sleep(timeinmillisecond);

and if you have a problem with the interface or controls update you may need to add this small line

this.Refresh();

good luck

No comments: