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?

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.

That stinks.

I was hoping they would fix it.

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

In app controls you made appear to be just like you noted (office is still using VS2008 for now so I can't test newer for a few months.)

But I think you want to publish your extensions to get the effects you noted. https://msdn.microsoft.com/en-us/library/ff728613.aspx
This is not something I've done. Just something that came up a few yarns ago.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.