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

VulpesPosted Jun 8, 2011, 12:58 PM
An event in C# can have multiple subscribers.
Roy SPosted Jun 8, 2011, 1:00 PM
So in your case both handlers should run. You can test it by putting breakpoints at the 2 handlers and see if they're being hit.
Praneeth KumarPosted Jun 8, 2011, 12:59 PM