changing field background for highlighting

Mike Smith

Registered User.
Local time
Today, 18:19
Joined
Sep 22, 2000
Messages
20
I want to highlight a form's field whenever it has the focus. It's easy enough to do by assigning code to the GotFocus Event for the field
(Me.ActiveControl.Backcolor=10079487)
but I don't want to have to go in to all 235 fields to do it. Can I assign this change globally and if so how? Naturally, I want the color to change
back to white when the field loses the focus.
Thanks!
 
Morning.
While what I do to accomplish this might be 'primitive', it IS easy and WORKS!

Once I have my form, I use hold the SHift Key and select all the data entry fields that I want this option for.
Then I simply go to the Back Style Property of a selected field and change it to Transparent.
All the selected fields get this property
AND AUTOMATICALLY whenever it gets the focus, the original color for the field comes through! Then, when focus is lost, you STILL CAN SEE the data entered, but it loses the back color.

Hope this helps you.

Russ
 

Users who are viewing this thread

Back
Top Bottom