Hidding collection items

  • Thread starter Thread starter Mario Vázquez
  • Start date Start date
M

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

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

Best regards,
Henning Krause
 
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


Henning Krause said:
Hello,

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

Best regards,
Henning Krause

Mario Vázquez said:
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
 
Back
Top