Results 1 to 5 of 5

Thread: Hidden members in the property browser

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Ventura, Ca
    Posts
    3

    Question 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,

  2. #2
    Lively Member
    Join Date
    Feb 2003
    Location
    UK
    Posts
    95

    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,

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Ventura, Ca
    Posts
    3

    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.

  4. #4
    Lively Member
    Join Date
    Feb 2003
    Location
    UK
    Posts
    95
    In that case what (or who) are you trying to hide the property from?

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Ventura, Ca
    Posts
    3

    Smile 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
  •  



Click Here to Expand Forum to Full Width