简单启动窗体的制做

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 windowsboy 的 blog

简单的启动窗体
 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();
  }

本文关键:简单启动窗体的制做
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top