If you want to add the button and a click event handler, you can do something like this: namespace Test { public partial class MosForm : Form { public MosForm() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { Button Mybutton = new Button(); Mybutton.Text = "My Button"; Mybutton.Location = new Point(12, 12); this.Controls.Add(Mybutton); Mybutton.Click += new EventHandler(Mybutton_Click); } private void Mybutton_Click(object sender, EventArgs e) { textBox1.Text = "All done"; } } }