?? frminputdialog.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace DataC
{
/// <summary>
/// Summary description for frmInputDialog.
/// </summary>
public class frmInputDialog : System.Windows.Forms.Form
{
private
string strXZ=null;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox tbXZ;
private System.Windows.Forms.Button btOK;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public frmInputDialog(string strOldValue)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
strXZ=strOldValue;
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.tbXZ = new System.Windows.Forms.TextBox();
this.btOK = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(15, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 17);
this.label1.TabIndex = 5;
this.label1.Text = "新值";
//
// tbXZ
//
this.tbXZ.Location = new System.Drawing.Point(52, 12);
this.tbXZ.Name = "tbXZ";
this.tbXZ.Size = new System.Drawing.Size(236, 21);
this.tbXZ.TabIndex = 6;
this.tbXZ.Text = "";
//
// btOK
//
this.btOK.Location = new System.Drawing.Point(296, 11);
this.btOK.Name = "btOK";
this.btOK.Size = new System.Drawing.Size(56, 23);
this.btOK.TabIndex = 7;
this.btOK.Text = "確定";
this.btOK.Click += new System.EventHandler(this.btOK_Click_1);
//
// frmInputDialog
//
this.AcceptButton = this.btOK;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(360, 46);
this.ControlBox = false;
this.Controls.Add(this.btOK);
this.Controls.Add(this.tbXZ);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "frmInputDialog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "輸入新值";
this.Load += new System.EventHandler(this.frmInputDialog_Load);
this.ResumeLayout(false);
}
#endregion
private void frmInputDialog_Load(object sender, System.EventArgs e)
{
tbXZ.Text=strXZ;
}
private void btOK_Click(object sender, System.EventArgs e)
{
}
private void btOK_Click_1(object sender, System.EventArgs e)
{
strXZ=tbXZ.Text.Trim();
this.Close();
}
public string XZ
{
get
{
return strXZ;
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -