3
Reply

Two Click events for one button

Majid Kamali

Majid Kamali

Jun 8 2011 12:51 PM
2k
Hi.
Can a button have two Click events?
I have a class that gets a reference of object Button and puts it in an inner variable. then with +=, I create a Click event handler for that button. inside the main form class, I created a Click handler for that button. what will occur when I click the button? will both handlers run?
Thanks

Answers (3)
Next Recommended Forum