修改程式0119

This commit is contained in:
JEFF 2025-01-19 16:58:22 +08:00
parent 2a393cc4f0
commit c8eca2cf5a
3 changed files with 56 additions and 31 deletions

View File

@ -28,12 +28,32 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Text = "Form1";
button1 = new Button();
SuspendLayout();
//
// button1
//
button1.Location = new Point(201, 104);
button1.Name = "button1";
button1.Size = new Size(112, 34);
button1.TabIndex = 0;
button1.Text = "button1";
button1.UseVisualStyleBackColor = true;
button1.Click += button1_Click;
//
// Form1
//
AutoScaleDimensions = new SizeF(11F, 23F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(button1);
Name = "Form1";
Text = "Form1";
ResumeLayout(false);
}
#endregion
private Button button1;
}
}

View File

@ -6,5 +6,10 @@ namespace git_test
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}