引入命名空间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();
}
本文介绍如何使用DevExpress库创建自定义的启动画面(Splash Screen),包括引入命名空间、添加SplashScreen窗体并进行界面设计,以及在主程序中展示启动画面的具体实现。
390

被折叠的 条评论
为什么被折叠?



