By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Hide property of component

P: n/a
Hi,

If I generate a class which inherits from component, is there an attribute I
can use on certain properties to keep them from being displayed in the
Visual Studio designer? Mind that I still want the properties to be fully
accessible through code, just not shown in the designer.

Thanks,
-Jason

Nov 18 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Set the Browseable attribute to false for the property

<Browsable(False)_
Public Property MyProperty() As Integer

http://msdn2.microsoft.com/en-us/lib...attribute.aspx

Ken
----------------------------

"OpticTygre" wrote:
Hi,

If I generate a class which inherits from component, is there an attribute I
can use on certain properties to keep them from being displayed in the
Visual Studio designer? Mind that I still want the properties to be fully
accessible through code, just not shown in the designer.

Thanks,
-Jason

Nov 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.