Home All Groups Group Topic Archive Search About

Hidding collection items

Author
28 Dec 2006 11:00 PM
Mario Vázquez
Hi,
I've created my own UITypeEditor to edit string collections in windows forms
apps. Now I'd like to hide the collection items from the property grid. Does
anybady know how?

Thanks in advance.
Mario Vazquez

Author
29 Dec 2006 8:39 AM
Henning Krause [MVP - Exchange]
Hello,

add a [Browsable(false)] attribute to the property.

Best regards,
Henning Krause

Show quote
"Mario Vázquez" <algu***@microsoft.com> wrote in message
news:uIU$2PtKHHA.2456@TK2MSFTNGP06.phx.gbl...
> Hi,
> I've created my own UITypeEditor to edit string collections in windows
> forms apps. Now I'd like to hide the collection items from the property
> grid. Does anybady know how?
>
> Thanks in advance.
> Mario Vazquez
>
Author
29 Dec 2006 9:55 AM
Mario Vázquez
Hi Henning,

If I do this, the property will be hidden at all, and I could'n open my
flamming editor!
The property is a string array, and VS adds a plus icon next to it in order
to expand it and edit the items. As I have made an own editor, I want that
the property only can be edited by using this editor. In other words, I only
want the ellipsis button to be shown.

Thanks for attention,
Mario Vazquez


Show quote
"Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
escribió en el mensaje news:u%23uxWTyKHHA.5104@TK2MSFTNGP06.phx.gbl...
> Hello,
>
> add a [Browsable(false)] attribute to the property.
>
> Best regards,
> Henning Krause
>
> "Mario Vázquez" <algu***@microsoft.com> wrote in message
> news:uIU$2PtKHHA.2456@TK2MSFTNGP06.phx.gbl...
>> Hi,
>> I've created my own UITypeEditor to edit string collections in windows
>> forms apps. Now I'd like to hide the collection items from the property
>> grid. Does anybady know how?
>>
>> Thanks in advance.
>> Mario Vazquez
>>
>

AddThis Social Bookmark Button