Thread.Sleep : Thread Sleep « Thread « C# / CSharp Tutorial






using System.Threading;
using System.Windows.Forms;
   
class ShowFormAndSleep
{
     public static void Main()
     {
          Form form = new Form();
   
          form.Show();
   
          Thread.Sleep(2500);
   
          form.Text = "My First Form";
   
          Thread.Sleep(2500);
     }
}








20.3.Thread Sleep
20.3.1.Foreground Thread Sleep
20.3.2.Putting a Thread to Sleep
20.3.3.Thread.Sleep