Example #1
0
 public void Show()
 {
     try
     {
         arg         = new ThreadWaiting();
         arg.theForm = theForm;
         ThreadStart ts = new ThreadStart(arg.Run);
         theThread      = new Thread(ts);
         theThread.Name = "Waiting";
         theThread.Start();
         theForm = arg.theForm;
     }
     catch { }
 }
Example #2
0
 public void Run()
 {
     if (theForm == null || theForm.IsDisposed)
     {
         theForm                 = new WaitingForm();
         theForm.WindowState     = FormWindowState.Normal;
         theForm.StartPosition   = FormStartPosition.CenterScreen;
         theForm.Text            = string.Empty;
         theForm.ControlBox      = false;
         theForm.FormBorderStyle = FormBorderStyle.None;
     }
     try
     {
         Application.Run(theForm);
     }
     catch { }
 }