>Hey Gil, thanks again. Yes, you're right, it's a BackColor propert, not ForeColor. I've added a method to the mceditbox(our company subclass of ceditbox), called SetBackColor:
>
>IF THIS.lChangeBackColor = .T. then
> THIS.BACKCOLOR =8454143
>ELSE
> THIS.BACKCOLOR =16777215
> THIS.lChangeBackColor = .T.
>ENDIF
>I am hard coding this(which I hate) because I don't think our users will use another color.But I will try your advise with the property to hold default BackColor.
>There is another VFP method ResetToDefault which sounds like what I need, I've tryied to used it but it didn't work, I mean I've got an error.
>What do you think?
>Igor
I've never used the ResetToDefault method. It does look like it should reset the color the the inherited value when the user leaves the control. What is the error?
Gil Munk
"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson