>If you set the disable forecolor/backcolor when you create the form, the colors will change automaticlly at run time when the enabled property is toggled.
>
>By the way, I went a long time doing the enable/disable the hard way. Check the setall command in help, you can change the enable (or other) properties of all the kindred objects at one time. Even if you want only 90% of the text boxes enabled, setall for 100% and then manual on the 10% is easier.
I'm talking about completely automatic, i.e. change the color at the class level, and let the user pick the color combinations - and not having the programmer setting the color when editing the form.
Regarding the spaghetti code we all have to write just in order to enable/disable controls... well, you may have found a short way. Maybe it is not only faster to code, but eventually faster at runtime, who knows.