加入收藏 | 设为首页 | 会员中心 | 我要投稿 焦作站长网 (https://www.0391zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > Asp教程 > 正文

简单的启动窗体

发布时间:2020-03-20 20:39:00 所属栏目:Asp教程 来源:互联网
导读:简单的启动窗体

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(); 
  } 

(编辑:焦作站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读