Hi
So I have an event handler for a button like so
How can I fire this button event from another function in my program?Code:private void button1_Click(object sender, System.EventArgs e)
{
//DoCoolStuff
}
~Barjor
Printable View
Hi
So I have an event handler for a button like so
How can I fire this button event from another function in my program?Code:private void button1_Click(object sender, System.EventArgs e)
{
//DoCoolStuff
}
~Barjor
If you have the button variable, you can call button.Click, or you can call the event handler function manually.