页面导航: 首页网络编程ASP.NET基础应用 → 正文内容

简单的启动窗体

发布:dxy 字体:[增加 减小] 类型:转载

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

浏览次数:载入中... 打印本文关闭本文返回首页
·在百度中搜索关于“简单的启动窗体”相关内容
·在谷歌中搜索关于“简单的启动窗体”相关内容

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行