引入命名空间using DevExpress.XtraSplashScreen;
添加 SplashScreen.cs 窗体,在窗体设计自定义的窗体界面
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
SplashScreenManager.ShowForm(typeof(SplashScreen1));
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
界面初始化载入完毕以后关闭窗体的事件
private void Form1_Load(object sender, EventArgs e)
{
SplashScreenManager.CloseForm();
}