Karthik Agarwal

Karthik Agarwal

  • NA
  • 748
  • 263.9k

How to the set Browsable attribute to True at runtime?

Mar 23 2012 3:26 AM
Hi i have Browsable attributes based on which i need to load the properties at run time. 

In order to make it more clear i have a dropdown list where i will select any one option amongst 1,2,3. If 1 is selected i should load the properties based on that accordingly for 2 and 3. The problem here is i have some specific properties for each option i.e 1,2 and 3. The options 1 or 2 or 3 will change dynamically how to change dynamically which property should be loaded dynamically.

Hence what i am trying to do is setting Browsable property to false at design time and change the property to true based on the selected option.
Is there anything better i can do? And also how to set the Browsable property to true at run time?

Answers (11)