📄 form1.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace Options
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class fclsOptions : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox grpMyGroupBox;
private System.Windows.Forms.CheckBox chkMyCheckBox;
private System.Windows.Forms.RadioButton optOption1;
private System.Windows.Forms.RadioButton radioButton1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public fclsOptions()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// 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.grpMyGroupBox = new System.Windows.Forms.GroupBox();
this.chkMyCheckBox = new System.Windows.Forms.CheckBox();
this.optOption1 = new System.Windows.Forms.RadioButton();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.grpMyGroupBox.SuspendLayout();
this.SuspendLayout();
//
// grpMyGroupBox
//
this.grpMyGroupBox.Controls.AddRange(new System.Windows.Forms.Control[] {
this.radioButton1,
this.optOption1,
this.chkMyCheckBox});
this.grpMyGroupBox.Location = new System.Drawing.Point(48, 16);
this.grpMyGroupBox.Name = "grpMyGroupBox";
this.grpMyGroupBox.Size = new System.Drawing.Size(200, 168);
this.grpMyGroupBox.TabIndex = 0;
this.grpMyGroupBox.TabStop = false;
this.grpMyGroupBox.Text = "This is a group box";
//
// chkMyCheckBox
//
this.chkMyCheckBox.Location = new System.Drawing.Point(16, 24);
this.chkMyCheckBox.Name = "chkMyCheckBox";
this.chkMyCheckBox.Size = new System.Drawing.Size(120, 24);
this.chkMyCheckBox.TabIndex = 0;
this.chkMyCheckBox.Text = "This is a check box";
//
// optOption1
//
this.optOption1.Location = new System.Drawing.Point(19, 65);
this.optOption1.Name = "optOption1";
this.optOption1.TabIndex = 1;
this.optOption1.Text = "This is option 1";
//
// radioButton1
//
this.radioButton1.Checked = true;
this.radioButton1.Location = new System.Drawing.Point(19, 96);
this.radioButton1.Name = "radioButton1";
this.radioButton1.TabIndex = 2;
this.radioButton1.TabStop = true;
this.radioButton1.Text = "This is option 2";
//
// fclsOptions
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.grpMyGroupBox});
this.Name = "fclsOptions";
this.Text = "Options";
this.grpMyGroupBox.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new fclsOptions());
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -