📄 form1.designer.cs
字号:
namespace WinApp5_6ListBox
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lstYears = new System.Windows.Forms.ListBox();
this.txtInputYear = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.lblOut = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 28);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(67, 15);
this.label1.TabIndex = 0;
this.label1.Text = "年份列表";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(166, 28);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(67, 15);
this.label2.TabIndex = 1;
this.label2.Text = "添加年份";
//
// lstYears
//
this.lstYears.FormattingEnabled = true;
this.lstYears.ItemHeight = 15;
this.lstYears.Location = new System.Drawing.Point(15, 57);
this.lstYears.Name = "lstYears";
this.lstYears.Size = new System.Drawing.Size(128, 169);
this.lstYears.TabIndex = 2;
this.lstYears.SelectedIndexChanged += new System.EventHandler(this.lstYears_SelectedIndexChanged);
//
// txtInputYear
//
this.txtInputYear.Location = new System.Drawing.Point(169, 57);
this.txtInputYear.Name = "txtInputYear";
this.txtInputYear.Size = new System.Drawing.Size(100, 25);
this.txtInputYear.TabIndex = 3;
//
// button1
//
this.button1.Location = new System.Drawing.Point(169, 96);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(100, 33);
this.button1.TabIndex = 4;
this.button1.Text = "追加";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(169, 143);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(100, 33);
this.button2.TabIndex = 5;
this.button2.Text = "插入";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(169, 190);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(100, 33);
this.button3.TabIndex = 6;
this.button3.Text = "删除";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(169, 237);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(100, 33);
this.button4.TabIndex = 7;
this.button4.Text = "清空";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// lblOut
//
this.lblOut.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lblOut.Location = new System.Drawing.Point(12, 245);
this.lblOut.Name = "lblOut";
this.lblOut.Size = new System.Drawing.Size(131, 23);
this.lblOut.TabIndex = 8;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 302);
this.Controls.Add(this.lblOut);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.txtInputYear);
this.Controls.Add(this.lstYears);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "列表框示例";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ListBox lstYears;
private System.Windows.Forms.TextBox txtInputYear;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Label lblOut;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -