create button in run time and add what u want as event
like this:
..it's click event of button1 and in method must have argument
object x,eventargs xx
private void button1_Click(object sender, EventArgs e)
{
Button button2 = new Button();
button2.Location = new System.Drawing.Point(100, 60);
button2.Name = "but";
button2.Size = new System.Drawing.Size(75, 23);
button2.Text = "button1";
button2.UseVisualStyleBackColor = true;
button2.Click+=new EventHandler(ok);
this.Controls.Add(button2);
}
public void ok(object sender,EventArgs e)
{
MessageBox.Show("mohamed");
}