大家好,如"金山词霸""魔兽争霸"等很多软件刚运行的时候会出现一个小页面(一般称之为欢迎界面吧).当某一程序窗口运行或者最小化以后Windows操作系统"开始"菜单右侧的状态栏一般会有一个显示.但是上面我说的欢迎界面出来后Windows操作系统"开始"菜单右侧并没有显示,而是这个欢迎界面出现几秒消失后进入主程序以后才有显示.请问类似这样的欢迎界面怎么做呢????谢谢.

解决方案 »

  1.   

    需要你准备两个Winform的窗体,一个叫它:SplashScreen,把它做成一个漂亮的窗体。然后你需要一个主窗体叫它:Form1吧,然后在这个窗体加入下面的代码。     // ( C# )     protected override void OnLoad ( System.EventArgs e )     {         //make load take a long time         Thread.Sleep(2000);          base.OnLoad(e);      }然后在Main中加入这样的代码:     [STAThread]     static void Main()      {         SplashScreen splashForm = new SplashScreen();         splashForm.Show();          Form1 mainForm = new Form1() ;          mainForm.Load += new EventHandler(splashForm.MainScreen_Load);         Application.Run(mainForm);      }不要忘了加上对Threading的引用: using System.Threading;
      

  2.   


    参考:
    http://dev.csdn.net/develop/article/50/50554.shtm
    http://dev.csdn.net/develop/article/65/65532.shtm
      

  3.   

    A Pretty Good Splash Screen in C#
    http://www.codeproject.com/csharp/PrettyGoodSplashScreen.asp
      

  4.   

    实现思路:一、Log 窗体一
         二、Main(进入的窗体)全屏