alvingenius
IT Specialist
- Local time
- Today, 12:31
- Joined
- Jul 10, 2016
- Messages
- 169
Hello
I have a form with many fields to fill
and I'm using this code to make specific textbox to change border color on mouse hover
So I have to repeat the same code in every control on the form
So my question is, is there a way to make this code work for all controls in the form ( text boxes / combo boxes ) without having to code every control?
Thanks
I have a form with many fields to fill
and I'm using this code to make specific textbox to change border color on mouse hover
SQL:
Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.txtUsername.BorderColor = 15197669
End Sub
Private Sub txtUsername_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.txtUsername.BorderColor = 14862256
End Sub
So I have to repeat the same code in every control on the form
So my question is, is there a way to make this code work for all controls in the form ( text boxes / combo boxes ) without having to code every control?
Thanks