form field highlight

B

Brian

how can I prevent the field from being entirely highlighted when entering
the field or when opening the form. My text is white and when the field is
highlighted (in white) I can't see the text.
 
W

Wayne-I-M

Why is your font colour white on a white background ?

Oh well, you must have a good reason ?

Put this on GotFocus

Private Sub TextBoxName_GotFocus()
Me.TextBoxName.BackColor = vbBlack
End Sub
 
B

Brian

actually the field background is set to transparent and the form color is
dark so I am using a white font color to see the text on the dark form - but
when the focus goes into the field, the whole field is highlghted in white
thereby making my text invisible.

your solution works, thanks

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top