How to highlight ALL text boxes when they receive focus.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there some generic code that will change the background of text boxes when
they receive the focus (and lose focus of course). I do not want to put code
into every single text box's GotFocus event.

Perhaps a 'form level' event or ontimer event code.
 
ThomasAJ said:
Is there some generic code that will change the background of text
boxes when they receive the focus (and lose focus of course). I do
not want to put code into every single text box's GotFocus event.

Perhaps a 'form level' event or ontimer event code.

One non-code method is to make all TextBox's BackColor contrast with the
BackColor of the form section and then also set them to transparent. The
transparent setting is ignored for the control with focus so it will stand out.
 
Back
Top