添加主窗口using System.Threading;
InitializeComponent();下添加
Thread th = new Thread(new ThreadStart(DoSplash));
th.Start();
Thread.Sleep(2000);//为时间设置 2000为2000毫秒
th.Abort();
Thread.Sleep(1000);
窗口调用
private void DoSplash()
{
Splash sp = new Splash();
sp.ShowDialog();
}
然后在创建一个 名字为SpLash的窗口BackgroundImage设置为你想要的图片
FormBroderStyle设置为None
ShowInTaskbar = false
StartPosition为CenterScreen
TransparencyKey为黑色