Here is an interesting one...
Using the following code, when you move the mouse over the button it changes colour.
Private Sub Commandbutton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
CommandButton1.BackColor = &HFF8080
End Sub
But how can I adapt this code so that the colour changes back again once the mouse has moved off the button?
Presumably this has something to do with the X, Y values..?
Sam
Using the following code, when you move the mouse over the button it changes colour.
Private Sub Commandbutton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
CommandButton1.BackColor = &HFF8080
End Sub
But how can I adapt this code so that the colour changes back again once the mouse has moved off the button?
Presumably this has something to do with the X, Y values..?
Sam