private void InitializeComponent()
{
// Initialize the components
textBox1 = new TextBox();
textBox2 = new TextBox();
textBox3 = new TextBox();
label1 = new Label();
label2 = new Label();
label5 = new Label();
label8 = new Label();
button1 = new Button();
label3 = new Label();
label4 = new Label();
label6 = new Label();
button2 = new Button();
// Set properties for textBox1
textBox1.Location = new Point(20, 20); // Adjust the position as needed
textBox1.Size = new Size(200, 20); // Adjust the size as needed
textBox1.Name = "textBox1";
// Set properties for textBox2
textBox2.Location = new Point(20, 60); // Adjust the position as needed
textBox2.Size = new Size(200, 20); // Adjust the size as needed
textBox2.Name = "textBox2";
textBox2.TextChanged += textBox2_TextChanged;
// Set properties for textBox3
textBox3.Location = new Point(20, 100); // Adjust the position as needed
textBox3.Size = new Size(200, 20); // Adjust the size as needed
textBox3.Name = "textBox3";
textBox3.TextChanged += textBox3_TextChanged;
// Set properties for label1
label1.Location = new Point(230, 20); // Adjust the position as needed
label1.Size = new Size(100, 20); // Adjust the size as needed
label1.Name = "label1";
label1.Text = "Label 1"; // Adjust the text as needed
// Set properties for label2
label2.Location = new Point(230, 60); // Adjust the position as needed
label2.Size = new Size(100, 20); // Adjust the size as needed
label2.Name = "label2";
label2.Text = "Label 2"; // Adjust the text as needed
// Set properties for label5
label5.Location = new Point(230, 100); // Adjust the position as needed
label5.Size = new Size(100, 20); // Adjust the size as needed
label5.Name = "label5";
label5.Text = "Label 5"; // Adjust the text as needed
// Set properties for label8
label8.Location = new Point(230, 140); // Adjust the position as needed
label8.Size = new Size(100, 20); // Adjust the size as needed
label8.Name = "label8";
label8.Text = "Label 8"; // Adjust the text as needed
// Set properties for button1
button1.Location = new Point(20, 140); // Adjust the position as needed
button1.Size = new Size(200, 30); // Adjust the size as needed
button1.Name = "button1";
button1.Text = "Button 1"; // Adjust the text as needed
button1.BackColor = Color.Red;
button1.UseVisualStyleBackColor = false;
button1.Click += button1_Click;
button1.MouseEnter += button1_MouseEnter;
button1.MouseLeave += button1_MouseLeave;
// Set properties for label3
label3.Location = new Point(230, 180); // Adjust the position as needed
label3.Size = new Size(100, 20); // Adjust the size as needed
label3.Name = "label3";
label3.Text = "Label 3"; // Adjust the text as needed
// Set properties for label4
label4.Location = new Point(230, 220); // Adjust the position as needed
label4.Size = new Size(100, 20); // Adjust the size as needed
label4.Name = "label4";
label4.Text = "Label 4"; // Adjust the text as needed
// Set properties for label6
label6.Location = new Point(230, 260); // Adjust the position as needed
label6.Size = new Size(100, 20); // Adjust the size as needed
label6.Name = "label6";
label6.Text = "Label 6"; // Adjust the text as needed
// Set properties for button2
button2.Location = new Point(20, 180); // Adjust the position as needed
button2.Size = new Size(200, 30); // Adjust the size as needed
button2.Name = "button2";
button2.Text = "Button 2"; // Adjust the text as needed
button2.BackColor = Color.Orange;
button2.UseVisualStyleBackColor = false;
button2.Click += button2_Click;
// Set properties for Form1
BackColor = Color.FromArgb(0, 192, 192);
ClientSize = new Size(400, 300); // Adjust the size as needed
Controls.Add(button2);
Controls.Add(label6);
Controls.Add(button1);
Controls.Add(label8);
Controls.Add(label1);
Controls.Add(label5);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(textBox3);
Controls.Add(textBox2);
Controls.Add(textBox1);
MinimizeBox = false;
Name = "Form1";
Load += Form1_Load;
ResumeLayout(false);
PerformLayout();
}
private void InitializeComponent()
{
// Initialize the components
textBox1 = new TextBox();
textBox2 = new TextBox();
textBox3 = new TextBox();
label1 = new Label();
label2 = new Label();
label5 = new Label();
label8 = new Label();
button1 = new Button();
label3 = new Label();
label4 = new Label();
label6 = new Label();
button2 = new Button();
// Set properties for textBox1
textBox1.Location = new Point(20, 20); // Adjust the position as needed
textBox1.Size = new Size(200, 20); // Adjust the size as needed
textBox1.Name = "textBox1";
// Set properties for textBox2
textBox2.Location = new Point(20, 60); // Adjust the position as needed
textBox2.Size = new Size(200, 20); // Adjust the size as needed
textBox2.Name = "textBox2";
textBox2.TextChanged += textBox2_TextChanged;
// Set properties for textBox3
textBox3.Location = new Point(20, 100); // Adjust the position as needed
textBox3.Size = new Size(200, 20); // Adjust the size as needed
textBox3.Name = "textBox3";
textBox3.TextChanged += textBox3_TextChanged;
// Set properties for label1
label1.Location = new Point(230, 20); // Adjust the position as needed
label1.Size = new Size(100, 20); // Adjust the size as needed
label1.Name = "label1";
label1.Text = "Label 1"; // Adjust the text as needed
// Set properties for label2
label2.Location = new Point(230, 60); // Adjust the position as needed
label2.Size = new Size(100, 20); // Adjust the size as needed
label2.Name = "label2";
label2.Text = "Label 2"; // Adjust the text as needed
// Set properties for label5
label5.Location = new Point(230, 100); // Adjust the position as needed
label5.Size = new Size(100, 20); // Adjust the size as needed
label5.Name = "label5";
label5.Text = "Label 5"; // Adjust the text as needed
// Set properties for label8
label8.Location = new Point(230, 140); // Adjust the position as needed
label8.Size = new Size(100, 20); // Adjust the size as needed
label8.Name = "label8";
label8.Text = "Label 8"; // Adjust the text as needed
// Set properties for button1
button1.Location = new Point(20, 140); // Adjust the position as needed
button1.Size = new Size(200, 30); // Adjust the size as needed
button1.Name = "button1";
button1.Text = "Button 1"; // Adjust the text as needed
button1.BackColor = Color.Red;
button1.UseVisualStyleBackColor = false;
button1.Click += button1_Click;
button1.MouseEnter += button1_MouseEnter;
button1.MouseLeave += button1_MouseLeave;
// Set properties for label3
label3.Location = new Point(230, 180); // Adjust the position as needed
label3.Size = new Size(100, 20); // Adjust the size as needed
label3.Name = "label3";
label3.Text = "Label 3"; // Adjust the text as needed
// Set properties for label4
label4.Location = new Point(230, 220); // Adjust the position as needed
label4.Size = new Size(100, 20); // Adjust the size as needed
label4.Name = "label4";
label4.Text = "Label 4"; // Adjust the text as needed
// Set properties for label6
label6.Location = new Point(230, 260); // Adjust the position as needed
label6.Size = new Size(100, 20); // Adjust the size as needed
label6.Name = "label6";
label6.Text = "Label 6"; // Adjust the text as needed
// Set properties for button2
button2.Location = new Point(20, 180); // Adjust the position as needed
button2.Size = new Size(200, 30); // Adjust the size as needed
button2.Name = "button2";
button2.Text = "Button 2"; // Adjust the text as needed
button2.BackColor = Color.Orange;
button2.UseVisualStyleBackColor = false;
button2.Click += button2_Click;
// Set properties for Form1
BackColor = Color.FromArgb(0, 192, 192);
ClientSize = new Size(400, 300); // Adjust the size as needed
Controls.Add(button2);
Controls.Add(label6);
Controls.Add(button1);
Controls.Add(label8);
Controls.Add(label1);
Controls.Add(label5);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(textBox3);
Controls.Add(textBox2);
Controls.Add(textBox1);
MinimizeBox = false;
Name = "Form1";
Load += Form1_Load;
ResumeLayout(false);
PerformLayout();
}