绘屏前不要先把屏幕刷新一次。也就是说不要用clear涂背景色。
解决方案 »
- 自学C#要不要学web方面的
- 一个小问题不知道用哪个格式化,类型转换问题???急 急 急,
- 链接问题
- 有关asp.net增加 账号密码提交 的问题!
- 救命啊,大侠救命,针对"{74946829-37A0-11D2-A273-00C04F8EF4FF}" 的QueryService失败...是什么问题呐.我搞晕了...
- httplistener实现的http服务器支持realplayer拖放的问题
- 类型问题
- 关于XmlDocument文档中节点的排序问题。
- winform保存视频文件相对路径的问题!!!!求高手指点呀,,,在线等待!!!!
- 关于时间日期范围的查询问题?急!!!
- 一个关于MS AGENT COMMAND事件的问题?
- 急:关于打印的问题
Graphics类的Clear方法,填涂背景色。
你在form的paint事件中
e.Graphics.Clear(Color.Teal);
{
public class SplashScreenForm : Form
{
public SplashScreenForm()
{
#if !DEBUG
TopMost = true;
#endif
FormBorderStyle = FormBorderStyle.None;
StartPosition = FormStartPosition.CenterScreen;
ShowInTaskbar = false;
ResourceManager resources = new ResourceManager("IconResources", Assembly.GetCallingAssembly());
Bitmap bitmap = (Bitmap)resources.GetObject("SplashScreen");
Size = bitmap.Size;
BackgroundImage = bitmap;
}
}
/// <summary>
/// This Class is the Core main class, it starts the program.
/// </summary>
public class SharpDevelopMain
{
static SplashScreenForm splashScreen = null;
static string[] commandLineArgs;
public static SplashScreenForm SplashScreen {
get {
return splashScreen;
}
}
public static string[] CommandLineArgs {
get {
return commandLineArgs;
}
}
/// <summary>
/// Starts the core of SharpDevelop.
/// </summary>
[STAThread()]
public static void Main(string[] args)
{
commandLineArgs = args;
bool noLogo = false;
foreach (string arg in args) {
if (arg.ToUpper().EndsWith("NOLOGO")) {
noLogo = true;
}
}
if (!noLogo) {
splashScreen = new SplashScreenForm();
splashScreen.Show();
}
try {
//完成初始化工作
} catch (Exception e) {
MessageBox.Show("Loading error, please reinstall :\n" + e.ToString());
return;
} finally {
if (splashScreen != null) {
splashScreen.Close();
splashScreen.Dispose();
}
}
}
}
}代码不是我的,摘自 SharpDevelop 。
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=406
30.7 How do I display a splash screen type form, one with only client area (no border or titlebar)
http://www.syncfusion.com/faq/winforms/search/621.asp