Hello all,
Can you dynamically change the property options for a control in the property grid of VisualStudio?
What I want is to be able to change some of the property options which are dependent upon others. For example:
If my control orientation was horizontal then I would want the text direction options to be "left" or "right" but if the orientation wsa vertical then I would want the text direction options to be "up" and "down". It does go deeper than that as there likely to be at least three controls dependent upon each other...
Currently I have some getter/setter methods which expose my custom properties in the property grid but I cannot see how you can change the options dependent upon another getter/setter method.
Clearly I need this to work at design time, which the current method does after the source is built.
Can anoyone help?
Thanks
Can you dynamically change the property options for a control in the property grid of VisualStudio?
What I want is to be able to change some of the property options which are dependent upon others. For example:
If my control orientation was horizontal then I would want the text direction options to be "left" or "right" but if the orientation wsa vertical then I would want the text direction options to be "up" and "down". It does go deeper than that as there likely to be at least three controls dependent upon each other...
Currently I have some getter/setter methods which expose my custom properties in the property grid but I cannot see how you can change the options dependent upon another getter/setter method.
Clearly I need this to work at design time, which the current method does after the source is built.
Can anoyone help?
Thanks
Comment