|
-
February 11th, 2004, 08:07 PM
#1
Individual Toolbar button event handlers
I know that in c# with windows forms, there is a toolbar click event handler which is triggered when any of the buttons in the toolbar is clicked. Now I need to have separate event handlers to different buttons in the toolbar. I know that it could be done by using the general toolbar click event handler as a dispatcher. But this way seems to add a un-necessary indirection into the code. i am wondering if there is a more elegant way of doing that? for example, can we treat toolbar buttons as regular buttons and add click event to the buttons?
Thanks.
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
|