In the Init of the textbox, do:
THIS.DisabledBackColor = THIS.BackColor
This will allow you to observe the user's system color settings, without hard-coding any colors.
>Hello VFP world,
>something probably very simple but need help.
>If I set TextBox.ReadOnly property to .T., it's BackColor(I think it's BackColor) wiil change to Gray color, which, I think, normal VFP behavior. I'd like to keep it White(16777215). I've tried a few combinations, nothing worked. Could anybody give me some help with this, please?
>I am working with VFP 7.0
>Regards
>Igor