我只需要一个简单的启动画面示例。
获取代码,插入我的图片,添加2行代码以加载和完成。
但是我能够在谷歌上找到的都太复杂了,那太多了。我只想要一个带有图片的表单,逐渐变得越来越透明,直到自动隐藏并显示我的窗口。
我尝试了Codeproject上的“prettygoodsplashscreen”,但对我不起作用。
语言为c#.net 2.0
我只需要一个简单的启动画面示例。
获取代码,插入我的图片,添加2行代码以加载和完成。
但是我能够在谷歌上找到的都太复杂了,那太多了。我只想要一个带有图片的表单,逐渐变得越来越透明,直到自动隐藏并显示我的窗口。
我尝试了Codeproject上的“prettygoodsplashscreen”,但对我不起作用。
语言为c#.net 2.0
创建启动界面可以简单或复杂,视你的需求而定。
private void Form1_Load(object sender, System.EventArgs e)
{
// Display the splash screen
var splashScreen = new SplashForm();
splashScreen.Show()
// On the splash screen now go and show loading messages
splashScreen.lblStatus.Text = "Loading Clients...";
splashScreen.lblStatus.Refresh();
// Do the specific loading here for the status set above
var clientList = _repository.LoadClients();
// Continue doing this above until you're done
// Close the splash screen
splashScreen.Close()
}
显然,启动屏幕本身是你需要决定它的外观方式...