How to do a wait function in C# code example Example: how to wait in c# System.Threading.Thread.Sleep(Milliseconds);