Click here to Skip to main content
15,901,284 members
Please Sign up or sign in to vote.
2.75/5 (4 votes)
See more:
i am really confused with events and their handling. I want to use my declared events with controls(button,radio button,etc), so please give me simple to advance guides to learn event with simple example.
Posted
Updated 4-Nov-10 7:57am
v2

 
Share this answer
 
try this:

[^]
 
Share this answer
 
there is very good article on our c# community.

please refer to this:
http://www.codeproject.com/KB/cs/csevents01.aspx[^]
 
Share this answer
 
Go through the below link

http://msdn.microsoft.com/en-us/library/aa645739%28VS.71%29.aspx[^]

There are so many Stuff in the net that solve your problem. Google is your Friend
 
Share this answer
 
Comments
fjdiewornncalwe 4-Nov-10 9:28am    
I give you a 5 for giving me a new quip to use in these types of situations... Love the "Google is your Friend"...
If I understand your question, you've declared some custom events and you want to use it with existing WinForms controls. You cannot do it that way with WinForms. With WPF or Silverlight, you can use something called Attached Events. See http://msdn.microsoft.com/en-us/library/bb613550.aspx[^]

That said, you could derive your custom controls from existing Winforms controls, and then add your custom events to those classes. That may be something worth investigating to see if it will fit your specific requirements.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900