How do I call an event method in C#?

button, c#, event-handling

Solution

// No "sender" or event args
public void button2_click(object sender, EventArgs e)
{
   button1_click(null, null);
}

or

// Button2's the sender and event args
public void button2_click(object sender, EventArgs e)
{   
   button1_click(sender, e);
}

or as Joel pointed out:

// Button1's the sender and Button2's event args
public void button2_click(object sender, EventArgs e)
{   
   button1_click(this.button1, e);
}

Problem

When I create buttons in C#, it creates `private void button_Click(object sender, EventArgs e)` method as well. How do I call `button1_click` method from `button2_click`? Is it possible? I am working with Windows Forms.

Original source