📄 aboutform.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace 自娱自乐
{
/// <summary>
/// AboutForm 的摘要说明。
/// </summary>
public class AboutForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Label labelEmail;
private System.Windows.Forms.Label labelLinkTel;
private System.Windows.Forms.Label labelexplain;
private System.Windows.Forms.Label labelStatus;
private System.Windows.Forms.Label labelAge;
private System.Windows.Forms.Label labelSex;
private System.Windows.Forms.Label labelName;
private System.Windows.Forms.PictureBox picAuthor;
private System.Windows.Forms.Button AboutExit;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public AboutForm()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutForm));
this.labelEmail = new System.Windows.Forms.Label();
this.labelLinkTel = new System.Windows.Forms.Label();
this.labelexplain = new System.Windows.Forms.Label();
this.labelStatus = new System.Windows.Forms.Label();
this.labelAge = new System.Windows.Forms.Label();
this.labelSex = new System.Windows.Forms.Label();
this.labelName = new System.Windows.Forms.Label();
this.picAuthor = new System.Windows.Forms.PictureBox();
this.AboutExit = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// labelEmail
//
this.labelEmail.BackColor = System.Drawing.Color.Transparent;
this.labelEmail.ForeColor = System.Drawing.Color.Red;
this.labelEmail.Location = new System.Drawing.Point(26, 210);
this.labelEmail.Name = "labelEmail";
this.labelEmail.Size = new System.Drawing.Size(240, 20);
this.labelEmail.TabIndex = 16;
this.labelEmail.Text = "E_Mail:adtf_liu@sina.com";
//
// labelLinkTel
//
this.labelLinkTel.BackColor = System.Drawing.Color.Transparent;
this.labelLinkTel.ForeColor = System.Drawing.Color.Red;
this.labelLinkTel.Location = new System.Drawing.Point(26, 190);
this.labelLinkTel.Name = "labelLinkTel";
this.labelLinkTel.Size = new System.Drawing.Size(240, 20);
this.labelLinkTel.TabIndex = 15;
this.labelLinkTel.Text = "OICQ : 380963";
//
// labelexplain
//
this.labelexplain.BackColor = System.Drawing.Color.Transparent;
this.labelexplain.Font = new System.Drawing.Font("楷体_GB2312", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.labelexplain.ForeColor = System.Drawing.Color.Linen;
this.labelexplain.Location = new System.Drawing.Point(26, 150);
this.labelexplain.Name = "labelexplain";
this.labelexplain.Size = new System.Drawing.Size(240, 40);
this.labelexplain.TabIndex = 14;
this.labelexplain.Text = " 总是你还知道看看我的简介,也算我没有白忙活半天啊!";
//
// labelStatus
//
this.labelStatus.BackColor = System.Drawing.Color.Transparent;
this.labelStatus.ForeColor = System.Drawing.Color.PaleGreen;
this.labelStatus.Location = new System.Drawing.Point(136, 105);
this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(120, 20);
this.labelStatus.TabIndex = 13;
this.labelStatus.Text = "状态 : 未婚";
//
// labelAge
//
this.labelAge.BackColor = System.Drawing.Color.Transparent;
this.labelAge.ForeColor = System.Drawing.Color.PaleGreen;
this.labelAge.Location = new System.Drawing.Point(136, 75);
this.labelAge.Name = "labelAge";
this.labelAge.Size = new System.Drawing.Size(120, 20);
this.labelAge.TabIndex = 12;
this.labelAge.Text = "年龄 : 25";
//
// labelSex
//
this.labelSex.BackColor = System.Drawing.Color.Transparent;
this.labelSex.ForeColor = System.Drawing.Color.PaleGreen;
this.labelSex.Location = new System.Drawing.Point(136, 45);
this.labelSex.Name = "labelSex";
this.labelSex.Size = new System.Drawing.Size(120, 20);
this.labelSex.TabIndex = 11;
this.labelSex.Text = "性别 : 男";
//
// labelName
//
this.labelName.BackColor = System.Drawing.Color.Transparent;
this.labelName.ForeColor = System.Drawing.Color.PaleGreen;
this.labelName.Location = new System.Drawing.Point(136, 15);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(120, 20);
this.labelName.TabIndex = 10;
this.labelName.Text = "作者 : 期待";
//
// picAuthor
//
this.picAuthor.BackColor = System.Drawing.Color.Transparent;
this.picAuthor.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("picAuthor.BackgroundImage")));
this.picAuthor.Location = new System.Drawing.Point(26, 10);
this.picAuthor.Name = "picAuthor";
this.picAuthor.Size = new System.Drawing.Size(100, 130);
this.picAuthor.TabIndex = 9;
this.picAuthor.TabStop = false;
//
// AboutExit
//
this.AboutExit.BackColor = System.Drawing.Color.Transparent;
this.AboutExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.AboutExit.ForeColor = System.Drawing.Color.Red;
this.AboutExit.Location = new System.Drawing.Point(112, 240);
this.AboutExit.Name = "AboutExit";
this.AboutExit.Size = new System.Drawing.Size(75, 25);
this.AboutExit.TabIndex = 17;
this.AboutExit.Text = "退 出";
this.AboutExit.Click += new System.EventHandler(this.AboutExit_Click);
//
// AboutForm
//
this.AcceptButton = this.AboutExit;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));
this.CancelButton = this.AboutExit;
this.ClientSize = new System.Drawing.Size(292, 273);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.AboutExit,
this.labelEmail,
this.labelLinkTel,
this.labelexplain,
this.labelStatus,
this.labelAge,
this.labelSex,
this.labelName,
this.picAuthor});
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(300, 300);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(300, 300);
this.Name = "AboutForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "AboutForm";
this.ResumeLayout(false);
}
#endregion
private void AboutExit_Click(object sender, System.EventArgs e)
{
this.Close() ;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -