Home All Groups Group Topic Archive Search About

Hide property of component

Author
18 Nov 2006 5:13 PM
OpticTygre
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

Author
18 Nov 2006 5:33 PM
Ken Tucker [MVP]
Hi,

           Set the Browseable attribute to false for the property

<Browsable(False)> _
Public Property MyProperty() As Integer
http://msdn2.microsoft.com/en-us/library/system.componentmodel.browsableattribute.aspx

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

Show quoteHide quote
"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
>
>
>
>