修改程式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> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); button1 = new Button();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; SuspendLayout();
this.ClientSize = new System.Drawing.Size(800, 450); //
this.Text = "Form1"; // 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 #endregion
private Button button1;
} }
} }

View File

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