コード例 #1
0
 static public void Show(string txt)
 {
     // Make sure it is only launched once.
     if (splashForm != null)
     {
         splashForm.BeginInvoke(new MethodInvoker(delegate { splashForm.label1.Text =       txt; }));
         return;
     }
     Thread thread = new Thread((ThreadStart)delegate { ShowForm(txt); });
     thread.IsBackground = true;
     thread.SetApartmentState(ApartmentState.STA);
     thread.Start();
 }