简单的启动窗体
摘要:复制代码代码如下:publicstaticSystem.Threading.Threadthread;publicstaticce.Abou...
复制代码 代码如下:publicstaticSystem.Threading.Threadthread;
publicstaticce.Aboutwelcomefrm;
[STAThread]
staticvoidMain()
{
System.Threading.ThreadStartstart=newThreadStart(ce.ceStart.splashForm);
thread=newThread(start);
thread.Start();
//做要做的事
//运行主程序
System.Windows.Forms.Application.Run(newce.Forms.coolmain());
}
staticvoidsplashForm()
{
ce.ceStart.welcomefrm=newAbout();
ce.ceStart.welcomefrm.Show();
Application.DoEvents();
ce.ceStart.welcomefrm.Activate();
thread.Join(2000);
ce.ceStart.welcomefrm.Close();
ce.ceStart.thread.Abort();
}
【简单的启动窗体】相关文章:
★ ASP.NET2.0:页面中链入的CSS、js文件带中文时需注意
上一篇:
读取TXT文件内容的方法
下一篇:
c#中实现文件拖放打开的方法