Python语言技术文档

微信小程序技术文档

php语言技术文档

jsp语言技术文档

asp语言技术文档

C#/.NET语言技术文档

html5/css技术文档

javascript

点击排行

您现在的位置:首页 > 技术文档 > C#/.NET技巧

简单的启动窗体

来源:中文源码网    浏览:123 次    日期:2024-04-26 19:50:28
【下载文档:  简单的启动窗体.txt 】


简单的启动窗体
复制代码 代码如下: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(); }

相关内容