杯具程序员
为系统而生,为框架而死,为debug奋斗一辈子;
     吃符号的亏,上大小写的当,最后死在需求上。

一、增加一个WinForm为SplashScreen,设置其Formborderstyle:None
二、增加引用using System.Threading;
三、在Form1的static void Main() 中增加入下代码:
SplashScreen splashForm = new SplashScreen(); //飞屏
   splashForm.Show();
   Application.DoEvents();//让系统在百忙中抽空刷新飞屏控件显示
   Thread.Sleep(2000);//暂停
   splashForm.Close();   
   Application.Run(new Form1());

posted on 2011-08-05 17:58  杯具程序员  阅读(409)  评论(0编辑  收藏  举报