日期:2014-05-18  浏览次数:20789 次

如何在出现程序主窗体前显示闪屏
如何在出现程序主窗体前显示闪屏!!!

------解决方案--------------------
如果是C#,最简单的实现是引用Microsoft.VisualBasic.dll,然后:
C# code

[STAThread]
static void Main()
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);

    Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase app =
        new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase();
    app.SplashScreen = new SplashForm();
    app.ApplicationContext.MainForm = new MainForm();

    app.Run(new string[0]);
    //Application.Run(new Form1());
}