private void button1_Click(object sender, System.EventArgs e)
{
Button newButton = new Button();
newButton = new System.Windows.Forms.Button();
newButton.Location = new System.Drawing.Point(48, 64);
newButton.Name = "button1";
newButton.TabIndex = 0;
newButton.Text = "newButton";
newButton.Click += new System.EventHandler(this.newButton_Click);
Controls.Add(newButton);
newButton.Width = 50;
}
private void newButton_Click(object sender, System.EventArgs e)
{
textBox1.Text = "123";
}
{
Button newButton = new Button();
newButton = new System.Windows.Forms.Button();
newButton.Location = new System.Drawing.Point(48, 64);
newButton.Name = "button1";
newButton.TabIndex = 0;
newButton.Text = "newButton";
newButton.Click += new System.EventHandler(this.newButton_Click);
Controls.Add(newButton);
newButton.Width = 50;
}
private void newButton_Click(object sender, System.EventArgs e)
{
textBox1.Text = "123";
}