代码如下:
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();
}
一起学吧部分文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与一起学吧进行文章共享合作。