📄 form1.designer.cs
字号:
namespace WinApp5_7ComboBox
{
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.cmbBooks = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(24, 25);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(67, 15);
this.label1.TabIndex = 0;
this.label1.Text = "书籍列表";
//
// cmbBooks
//
this.cmbBooks.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
this.cmbBooks.FormattingEnabled = true;
this.cmbBooks.Items.AddRange(new object[] {
"孙子兵法",
"二十年目睹之怪现状",
"初刻拍案惊奇"});
this.cmbBooks.Location = new System.Drawing.Point(27, 60);
this.cmbBooks.Name = "cmbBooks";
this.cmbBooks.Size = new System.Drawing.Size(208, 150);
this.cmbBooks.TabIndex = 1;
//
// button1
//
this.button1.Location = new System.Drawing.Point(259, 78);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 37);
this.button1.TabIndex = 2;
this.button1.Text = "添加";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(259, 154);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 37);
this.button2.TabIndex = 3;
this.button2.Text = "取消";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(357, 260);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.cmbBooks);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "ComboBox示例";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cmbBooks;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -