How to show event of a user control in property window
-
Hi, I made a custom control inherited from 'Button' control. I made a custom event 'Action' in this userControl I made a access specifier 'public'. like this : public delegate void ActionEventHandler(object sender,ActionEventArgs e); public event ActionEventHandler Action; protected void OnAction( object sender, ActionEventArgs e) { if ( Action != null) { Action(sender,e); } } but when I drop this control to a form it doesn't show 'Action' event in property window. plz help how to do this...
-
Hi, I made a custom control inherited from 'Button' control. I made a custom event 'Action' in this userControl I made a access specifier 'public'. like this : public delegate void ActionEventHandler(object sender,ActionEventArgs e); public event ActionEventHandler Action; protected void OnAction( object sender, ActionEventArgs e) { if ( Action != null) { Action(sender,e); } } but when I drop this control to a form it doesn't show 'Action' event in property window. plz help how to do this...
Add the BrowsableAttribute[^] to the event.
Simon