MenuItems - Unknowingly Handle Multiple OnClick Events
I have about 15 MenuItems and i would like them all to use the same onclick event rather than multicasting a new event handler for each one.
Is this possible? If so, how would my one event handler handle multiple possible object senders? Cast the sender to a MenuItem and act upon it?
Thanks,
-Mario
Re: MenuItems - Unknowingly Handle Multiple OnClick Events
That's what a Delegate is. Search it out here
It's built in.
Re: MenuItems - Unknowingly Handle Multiple OnClick Events
This is a link that explain about event, delegate, and event handler.
Hope this can help, its help me to understand about event.
http://www.codeproject.com/csharp/ev...ndamentals.asp