0

I've asked this on SO AND Reddit without so much as a peep...was hoping DW would turn up the answer!

I have an ascx user control that has a custom event added to it.

I can get the event to work without problem, but the event doesn't show up in Visual Studio's property editor, only in intellisense. Is there an attribute I am missing or something?

The event definition is:

[Browsable(true), EditorBrowsable(EditorBrowsableState.Always)]
public event EventHandler<EventArgs> SelectedIndexChanged;

The event doesn't show up in the property box but all of my custom properties do:
01.png

But is accessable through intellisense:
02.png

Is there a way to have the events show up in the property editor?

2
Contributors
3
Replies
21
Views
3 Months
Discussion Span
Last Post by rproffitt
0

From memory this is an old complaint about VS2005 and VS2008. I will forego sharing any googles about it. Be sure to ask Microsoft to add this in the future.

Yes, for some reason intellisense will autocomplete it.

0

That stinks.

I was hoping they would fix it.

I'm assuming it isn't fixed in the latest version either?

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.