예제 #1
0
 public void Run()
 {
     for (int i = 1; i <= 5; i++)
     {
         myString = "Step number " + i.ToString() + " executed";
         Thread.Sleep(400);
         // Execute the specified delegate on the thread that owns
         // 'myFormControl1' control's underlying window handle with
         // the specified list of arguments.
         myFormControl1.Invoke(myFormControl1.myDelegate,
                               new Object[] { myString });
     }
 }
 public void Run()
 {
     // Execute the specified delegate on the thread that owns
     // 'myFormControl1' control's underlying window handle.
     myFormControl1.Invoke(myFormControl1.myDelegate);
 }