Click here to Skip to main content
16,004,602 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
How can I add a delay function to C#?
Posted
Updated 5-Jan-11 19:15pm
v3

Thread.Sleep(100); //pauses the currently running thread by 100ms
 
Share this answer
 
Comments
Hiren solanki 6-Jan-11 1:16am    
Oh JF you beat me to it.
Thread.Sleep(milliseconds);


Refer THIS[^]
and THIS[^].
 
Share this answer
 
Comments
JF2015 6-Jan-11 1:17am    
You needed more time since you searched for some additional links, thus your answer is better. Have my 5!
Hiren solanki 6-Jan-11 8:43am    
Kind of you JF.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900