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
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.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.