Hello There,
I have what I thought was a relatively easy task to do, but can't seem to find the information on how to do it!
I have a user control with a selection of properties. I realise I can add or remove properties to be visible in design time during consruction using a <DesignAttribute command and creating a class which inherits from Design.ControlDesigner. However I want to be able to hide or show properties in design timebased on the setting of a third property.
For instance say I have three properties,
-
Number Format
-
Date Format
-
DataType
If the Datatype is set to number in the designer, then in the design time property window I want toshow the NumberFormat property but hide the Date Format property. If datatype set to Date then vica-versa.
I assumed this would be trivial (and maybe is) but I cannot find any concreate leads on how to do this!
Any help would be greatly appreciated.
Kieron
Ps. I'm using VB.NET and VS 2008