有一种朋友不在生活里,却在生命力;有一种陪伴不在身边,却在心间。图老师即在大家的生活中又在身边。这么贴心的服务你感受到了吗?话不多说下面就和大家分享简单的启动窗体吧。
【 tulaoshi.com - Web开发 】
代码如下:
public static System.Threading.Thread thread;  
  public static ce.About welcomefrm;  
 [STAThread]  
  static void Main()   
  {  
   System.Threading.ThreadStart start=new ThreadStart(ce.ceStart.splashForm);  
   thread=new Thread(start);  
   thread.Start();  
   //做要做的事  
   //运行主程序  
   System.Windows.Forms.Application.Run(new  ce.Forms.coolmain());  
  }  
  static void splashForm()  
  {  
   ce.ceStart.welcomefrm =new About();  
   ce.ceStart.welcomefrm.Show();  
   Application.DoEvents();  
   ce.ceStart.welcomefrm.Activate();  
   thread.Join(2000);  
   ce.ceStart.welcomefrm.Close();  
   ce.ceStart.thread.Abort();  
  } 
来源:http://www.tulaoshi.com/n/20160219/1595950.html