闪屏示例 [英] Splash Screen Example

查看:139
本文介绍了闪屏示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想要一个简单的开机画面例。

I only want a simple Splash Screen Example.

获取code,将我的照片,添加2线code的加载和完成。

Get the Code, Insert my picture, add 2 lines of code to load and finish.

但是,所有我可以谷歌是如此的复杂,实在是太多了。我只想与去越来越透明,直到它隐藏全自动并显示我的窗口画面的形式。

But all I can google is so complex, that is too much. I only want a form with a picture that goes more and more transparent until it hides automaticly and my window is shown.

我试图从$ C $的CProject了prettygoodsplashscreen,但不为我工作。

I tried the "prettygoodsplashscreen" from Codeproject, but don't work for me.

郎是C#.net 2.0

Lang is c#.net 2.0

推荐答案

为您做出/希望它是创建闪屏可以是简单或复杂。

Creating the splash screen can be as simple or complex as you make/want it to be.

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()
}

显然,闪屏本身的东西,你必须决定如何你希望它看起来...

Obviously the Splash Screen itself is something that you'd have to decide how you want it to look...

这篇关于闪屏示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆