>Hi folks!
>Here is what I am trying to do. Every time user goes to control I’d like to change it’s color to yellow and when user left the control it’s color should goes back to default. I think I should add new property (ChangeForeColor = .T. is default) and a method (if ChangeForeColor = .T. then change fore color to yellow) to the control and call this method form GotFocus Event( change fore color to yellow and set ChangeForeColor to .F.) and LostFocus Event (change color to white and set ChangeForeColor back to .T.). I am working with MM 6.1
>
>How it is sounds?
>Thank you everybody!
>Igor
Igor,
I think you would want to change the BackColor (Black text on yellow) as opposed to forecolor (yellow text on white)
Be sure to add a property to your subclass of the framework control classes that you can use to store the current backcolor as you GetFocus so you can restore it as it loses focus.
Gil Munk
"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson