This commit is contained in:
2024-01-19 14:00:32 +00:00
parent 7c7c99dad4
commit 1dd49720e1
18 changed files with 857 additions and 7 deletions

View File

@@ -35,7 +35,7 @@
//
// button1
//
this.button1.Location = new System.Drawing.Point(71, 57);
this.button1.Location = new System.Drawing.Point(12, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(108, 42);
this.button1.TabIndex = 0;
@@ -45,7 +45,7 @@
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(71, 105);
this.textBox1.Location = new System.Drawing.Point(12, 60);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(108, 20);
this.textBox1.TabIndex = 1;
@@ -53,17 +53,17 @@
// outputLabel1
//
this.outputLabel1.AutoSize = true;
this.outputLabel1.Location = new System.Drawing.Point(68, 170);
this.outputLabel1.Location = new System.Drawing.Point(12, 83);
this.outputLabel1.Name = "outputLabel1";
this.outputLabel1.Size = new System.Drawing.Size(69, 13);
this.outputLabel1.Size = new System.Drawing.Size(37, 13);
this.outputLabel1.TabIndex = 2;
this.outputLabel1.Text = "outputLabel1";
this.outputLabel1.Text = "output";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(274, 410);
this.ClientSize = new System.Drawing.Size(135, 190);
this.Controls.Add(this.outputLabel1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);

View File

@@ -16,10 +16,10 @@ namespace WindowsFormsApp1
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
outputLabel1.Text = textBox1.Text;
outputLabel1.ForeColor = Color.Red;
}
}
}