|
-
May 15th, 2003, 11:05 PM
#1
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?
end------------------------------
Programmers aren't born, but are made from hardwork, effort and time.
To be a good one, requires more effort and hardwork.
Therefore N quality programmer = (N*hardwork)+(N*effort)+(N*time)
-
May 16th, 2003, 01:18 AM
#2
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
- Software Architect
-
May 16th, 2003, 11:21 AM
#3
and also to add plz check design patterns with menu , buttons etc and event handling with it on MSDN
Paresh
- Software Architect
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|