-
Event handler
just wondering if we can make an event handler call another event handler.
MyButton.clicks += new EventHandler(MyButton_Click);
//how do we make MyButton_Click() call yet another MyButton_Click2()?
because if I use MyButton.clicks += new EventHandler(MyButton_Click2()), it does not guarantee that MyButton_Click will execute before MyButton_Click2.
What advice do you have?
-
from your question looks like you want to invoke an event with in an event.
you will need to pass the sender object and the event object.
plz specify the question and expected answer further to help your needs.
-Paresh
-
and also to add plz check design patterns with menu , buttons etc and event handling with it on MSDN
Paresh