?? splashform.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace MKIms3
{
/// <summary>
/// SplashForm 的摘要說明。
/// </summary>
public class SplashForm : System.Windows.Forms.Form
{
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label lStatusInfo;
/// <summary>
/// 必需的設計器變量。
/// </summary>
private System.ComponentModel.Container components = null;
public SplashForm()
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
//
}
public string StatusInfo
{
set
{
_StatusInfo = value;
ChangeStatusText();
}
get
{
return _StatusInfo;
}
}
public void ChangeStatusText()
{
try
{
if (this.InvokeRequired)
{
this.Invoke(new MethodInvoker(this.ChangeStatusText));
return;
}
lStatusInfo.Text = _StatusInfo;
}
catch (Exception e)
{
MessageBox.Show("錯誤信息"+e.Message,"錯誤");
}
}
private string _StatusInfo = "";
/// <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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SplashForm));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.lStatusInfo = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Cursor = System.Windows.Forms.Cursors.WaitCursor;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(544, 336);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// lStatusInfo
//
this.lStatusInfo.BackColor = System.Drawing.Color.MidnightBlue;
this.lStatusInfo.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.lStatusInfo.Location = new System.Drawing.Point(48, 280);
this.lStatusInfo.Name = "lStatusInfo";
this.lStatusInfo.Size = new System.Drawing.Size(280, 23);
this.lStatusInfo.TabIndex = 1;
this.lStatusInfo.Text = "用戶驗證通過,正在加載系統數據...";
this.lStatusInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// SplashForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(544, 336);
this.Controls.Add(this.lStatusInfo);
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "SplashForm";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "正在加載系統數據....";
this.Load += new System.EventHandler(this.SplashForm_Load);
this.ResumeLayout(false);
}
#endregion
private void SplashForm_Load(object sender, System.EventArgs e)
{
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -