savagerx
May 15th, 2003, 11:05 PM
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?
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?