D
David Veeneman
I'm writing a user control that provides its own Validating event. The
control's Validating event passes a custom set of event args, rather than
the CancelEventArgs used by the UserControl's Validating event.
That means I have to hide the UserControl's Validating event with the 'new'
keyword on my own event:
[Browsable(true)]
public new event EventHandler<ValidatingEventArgs<object>> Validating;
Here's my problem: Even though the event is decorated with a Browsable
attribute, the event does not appear in the Event List in the VS.Net
Properties window. I can manually assign an event handler, and the property
works fine. But I'd like to assign the handler using the Properties window.
What do I need to do to get this event to show up in the Properties window?
Thanks.
control's Validating event passes a custom set of event args, rather than
the CancelEventArgs used by the UserControl's Validating event.
That means I have to hide the UserControl's Validating event with the 'new'
keyword on my own event:
[Browsable(true)]
public new event EventHandler<ValidatingEventArgs<object>> Validating;
Here's my problem: Even though the event is decorated with a Browsable
attribute, the event does not appear in the Event List in the VS.Net
Properties window. I can manually assign an event handler, and the property
works fine. But I'd like to assign the handler using the Properties window.
What do I need to do to get this event to show up in the Properties window?
Thanks.