نکته شماره 20 :

در کد زیر ، با کلیک روی button  یک تکست باکس به فرم اضافه میکند .

 

private void button1_Click(object sender, System.EventArgs e)
{
TextBox myText = new TextBox();
myText.Location = new Point(25,25);
this.Controls.Add (myText);
}