📄 frmsplash.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace OneToMany
{
/// <summary>
/// frmSplash 的摘要说明。
/// </summary>
public class frmSplash : System.Windows.Forms.Form
{
private System.Windows.Forms.Timer splashTimer;
private System.ComponentModel.IContainer components;
public frmSplash()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmSplash));
this.splashTimer = new System.Windows.Forms.Timer(this.components);
//
// splashTimer
//
this.splashTimer.Enabled = true;
this.splashTimer.Interval = 2000;
this.splashTimer.Tick += new System.EventHandler(this.splashTimer_Tick);
//
// frmSplash
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(374, 358);
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmSplash";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.TopMost = true;
this.Click += new System.EventHandler(this.frmSplash_Click_1);
this.Load += new System.EventHandler(this.frmSplash_Load);
}
#endregion
private void splashTimer_Tick(object sender, System.EventArgs e)
{
splashTimer.Enabled = false;
this.Close();
}
private void frmSplash_Click(object sender, System.EventArgs e)
{
splashTimer.Enabled = false;
this.Close();
}
private void frmSplash_Load(object sender, System.EventArgs e)
{
}
private void frmSplash_Click_1(object sender, System.EventArgs e)
{
splashTimer.Enabled = false;
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -