|
-
Aug 13th, 2003, 05:59 PM
#1
Thread Starter
New Member
Hidden members in the property browser
In the object browser you can right click and select show hidden members. How do I make a property hidden in .net. In VB6 you could do it from the properties dialog.
I assume it is an attribute but cannot find anything in msdn on how to do this.
Thanks,
-
Aug 14th, 2003, 05:58 AM
#2
Lively Member
Re: Hidden members in the property browser
Try the <Browsable(False)> attribute on the property.
Originally posted by Mike Gustafson
In the object browser you can right click and select show hidden members. How do I make a property hidden in .net. In VB6 you could do it from the properties dialog.
I assume it is an attribute but cannot find anything in msdn on how to do this.
Thanks,
-
Aug 14th, 2003, 07:44 AM
#3
Thread Starter
New Member
Re: Re: Hidden members in the property browser
Originally posted by shutty
Try the <Browsable(False)> attribute on the property.
Thanks but this is not it. The browsable atribute is to allow browsing of the property if you view the object in the property browser control.
-
Aug 14th, 2003, 07:47 AM
#4
Lively Member
In that case what (or who) are you trying to hide the property from?
-
Aug 14th, 2003, 08:16 AM
#5
Thread Starter
New Member
Found Solution
I found the solution, just use the following attribute
<EditorBrowsable(EditorBrowsableState.Advanced)>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|