in my own usercontrol, i want it to change its colour whenever the mouse just comes over it then i typed this code and it is OK
Private Sub UserControl_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1.BackColor = &H404080
Shape2.BackColor = &H80000001
the problem is when i put the mouse away of the usercontrol it stay by the new Backcolor (as shown in the code above) but i want its Backcolor to return into the original color whenever i put the mouse away of it.
note: my usercontrol consists of 2 shapes as shown above
Please i need your help to amend this code to let me do that.
Many Thanks in advance