Change Border Color

jboyle

New member
Local time
Today, 19:17
Joined
Nov 18, 2000
Messages
53
I would like the color of the border to change on text boxes when a mouse-over action occurs. Any ideas?
Thanks - John
 
This will change it from one colour to the other as you move the mouse over the textbox; you'd need to do the same thing on the MouseMove() event of the Detail too, just reversing the colours.

Code:
Private Sub txtYourTextBox_MouseMove()

   If Me.txtYourTextBox.BorderColor = vbRed Then
      Me.txtYourTextBox.BorderColor = vbBlue
   End If

End Sub
 

Users who are viewing this thread

Back
Top Bottom