Conditional Property!!

  • Thread starter Thread starter Ahmed
  • Start date Start date
A

Ahmed

Hello All,

I am not sure if what I am trying to accomplish is doable or not. I am
designing a control. What I am trying to do is remove or hide
properties from the property window if a certain property is set to
false and show them if that property is set to ture.

Is that doable?

Thanks

Ahmed
 
You can implement ICustomTypeDescriptor and dynamically add/remove a
EditorBrowsableAttribute on the property you want to show/hide...

- Stenis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top