S
stacie.2410
I have a form which has several labels (which are tied to actions when
they're clicked). I'm looking for a solution to change the color of the font
when it's moused over. The original font is blue, and I want to change it to
yellow on mouseover, then back to blue when the mouse is no longer hovering
over that label. I've got some code currently in that will change the color
of the font when it's moused over. but it doesn't change it back afterwards,
despite my code on the form's mouseover event. It just stays yellow, Any
help is greatly appreciated. I've pasted my code below.
Private Sub AddTransmittal_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
AddTransmittal.FontSize = 13
AddTransmittal.ForeColor = 49915
End Sub
Private Sub MainMenu_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
AddTransmittal.FontSize = 12
AddTransmittal.ForeColor = 16776960
End Sub
they're clicked). I'm looking for a solution to change the color of the font
when it's moused over. The original font is blue, and I want to change it to
yellow on mouseover, then back to blue when the mouse is no longer hovering
over that label. I've got some code currently in that will change the color
of the font when it's moused over. but it doesn't change it back afterwards,
despite my code on the form's mouseover event. It just stays yellow, Any
help is greatly appreciated. I've pasted my code below.
Private Sub AddTransmittal_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
AddTransmittal.FontSize = 13
AddTransmittal.ForeColor = 49915
End Sub
Private Sub MainMenu_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
AddTransmittal.FontSize = 12
AddTransmittal.ForeColor = 16776960
End Sub