0

Is it possible to hide the Name property in the ProeprtyGrid? I already hides all other property like Font, BackColor and other properties. I just want to show the Text property. Anyway, I am working on a end user form designer like visual studio designer. So i am only showing some property to the user. I inherited the control and i am using the following code to hide those property:

[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
public override Color BackColor { get; set; }

All works okay. It hides the property except for the two property named Locked and Name. I am using the same code as above but still showing in the property. Actually the property Name is showing twice.

[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
private new string Name { get; set; }

[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
public bool Locked;

Or if it's not possible to hide the Name property, why does it displays the Name property twice?

enter image description here

Zhyke
  • 427
  • 7
  • 22

0 Answers0