I tried to hide inherited property in intellisense with EditorBrowsable
(as said here Hiding user control properties from IntelliSense), when testing in client form though I can still see it why ?
[ Category("Main"), Description("Text"), Obsolete("Don't use this"), Browsable(false), EditorBrowsable(EditorBrowsableState.Never) ] public override String Text { get { return null; } }
Are you using ReSharper? It seems like ReSharper doesn't obey the EditorBrowsable
attribute.
If I turn off ReSharper, I don't see my property. If I turn ReSharper on, it does show.
In ReSharper Options, go to Environment | IntelliSense | Completion Appearance and check "Filter members by [EditorBrowsable] attribute".
You still have to reference the assembly though, it doesn't work within a solution if you reference your usercontrol's project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With