📄 form1.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace UserRegistry
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox4;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.ComboBox comboBox3;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// 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.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.label10 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.listBox1 = new System.Windows.Forms.ListBox();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.SuspendLayout();
//
// label8
//
this.label8.Location = new System.Drawing.Point(200, 72);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(24, 16);
this.label8.TabIndex = 7;
this.label8.Text = "年";
//
// label9
//
this.label9.Location = new System.Drawing.Point(272, 72);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(24, 16);
this.label9.TabIndex = 7;
this.label9.Text = "月";
//
// label4
//
this.label4.Location = new System.Drawing.Point(16, 248);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(216, 23);
this.label4.TabIndex = 0;
this.label4.Text = "您是从哪里了解本网站的(多选):";
//
// label5
//
this.label5.Location = new System.Drawing.Point(16, 336);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(192, 23);
this.label5.TabIndex = 0;
this.label5.Text = "是否愿意接收我们的电子期刊:";
//
// label6
//
this.label6.Location = new System.Drawing.Point(16, 104);
this.label6.Name = "label6";
this.label6.TabIndex = 0;
this.label6.Text = "Email地址:";
//
// label7
//
this.label7.Location = new System.Drawing.Point(16, 128);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(192, 23);
this.label7.TabIndex = 0;
this.label7.Text = "您的职业:";
//
// checkBox2
//
this.checkBox2.Location = new System.Drawing.Point(64, 280);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(200, 24);
this.checkBox2.TabIndex = 9;
this.checkBox2.Text = "广告";
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 8);
this.label1.Name = "label1";
this.label1.TabIndex = 0;
this.label1.Text = "姓名:";
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 40);
this.label2.Name = "label2";
this.label2.TabIndex = 0;
this.label2.Text = "性别:";
//
// label3
//
this.label3.Location = new System.Drawing.Point(16, 72);
this.label3.Name = "label3";
this.label3.TabIndex = 0;
this.label3.Text = "出生年月:";
//
// checkBox3
//
this.checkBox3.Location = new System.Drawing.Point(64, 296);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(200, 24);
this.checkBox3.TabIndex = 10;
this.checkBox3.Text = "朋友推荐";
//
// checkBox4
//
this.checkBox4.Checked = true;
this.checkBox4.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox4.Location = new System.Drawing.Point(64, 360);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(200, 24);
this.checkBox4.TabIndex = 11;
this.checkBox4.Text = "是的,我愿意";
this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged);
//
// label10
//
this.label10.Location = new System.Drawing.Point(336, 72);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(24, 16);
this.label10.TabIndex = 7;
this.label10.Text = "日";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(128, 104);
this.textBox2.Name = "textBox2";
this.textBox2.TabIndex = 6;
this.textBox2.Text = "";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(128, 8);
this.textBox1.Name = "textBox1";
this.textBox1.PasswordChar = '*';
this.textBox1.TabIndex = 0;
this.textBox1.Text = "";
//
// checkBox1
//
this.checkBox1.Location = new System.Drawing.Point(64, 264);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(200, 24);
this.checkBox1.TabIndex = 8;
this.checkBox1.Text = "搜索引擎";
//
// comboBox3
//
this.comboBox3.DropDownWidth = 64;
this.comboBox3.Items.AddRange(new object[] {
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -