Click to See Complete Forum and Search --> : User Control properties?


kobus
August 30th, 2006, 02:51 AM
I am using Visual Studio 2003 and C# to develop a textbox user control. In the Properties Window of the Visual Studio Editor I have a few of the public properties that the developer can select to change how the user control is going to behave and/or look. Is it possible to have some properties not available on the Properties Window until the developer has selected a value? For example the background color. If I use an enumerator to give the following values for the background color: Default, Custom

In the properties window I would like the developer to be able to choose a color if he has chosen the Custom option, but not if he has chosen the Default option.

All help will be appreciated.

Thanks

Kobus