Best advice is don't do this. Many people are color blind, others are shade blind. It's very likely you'll have users that can't read the text in the controls.
>hi all,
> i need help to add color at my textbox for this code.
>
>Thisform.SetAll("Enabled",.F.,"textbox")
>Thisform.SetAll("Enabled",.F.,"COMBObox")
>
>thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer