Remove items from property grid
-
Hello to all I have problem with property grid. I am adding label object to property grid and want to show some specific property of label. But propertygrid shows all properties. Please help me out how can i skip some property of label. Thanks in advance.
-
Hello to all I have problem with property grid. I am adding label object to property grid and want to show some specific property of label. But propertygrid shows all properties. Please help me out how can i skip some property of label. Thanks in advance.
I am afraid we can not do this for defined control, such as Textbox. But we can set the visible property for custom control(e.g. MyTextbox) via Browserable attribute. If we want to expose some certain property from Textbox, we can hold the reference in MyTextbox object. For example: class MyTextbox { TextBox textbox; public string Text { get { return this.textbox.Text; } set { this.textbox.Text = value; } } } Hope this will help you ~
Tan Li I Love KongFu~