?? openform.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace DataServer
{
/// <summary>
/// NewForm 的摘要說明。
/// </summary>
public class OpenForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btn_close;
/// <summary>
/// 必需的設(shè)計器變量。
/// </summary>
private System.ComponentModel.Container components = null;
public OpenForm()
{
//
// Windows 窗體設(shè)計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
//
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗體設(shè)計器生成的代碼
/// <summary>
/// 設(shè)計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內(nèi)容。
/// </summary>
private void InitializeComponent()
{
this.btn_close = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(480, 296);
this.btn_close.Name = "btn_close";
this.btn_close.TabIndex = 0;
this.btn_close.Text = "Close(&C)";
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// OpenForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(568, 333);
this.Controls.Add(this.btn_close);
this.MaximizeBox = false;
this.Name = "OpenForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "OpenForm";
this.ResumeLayout(false);
}
#endregion
private void btn_close_Click(object sender, System.EventArgs e)
{
this.Close() ;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -