Each object has its own MouseMove event, so the object the mouse is over is
the object of which this is the MouseMove event, if you see what I mean?
There is no need to test, in the MouseMove event, what object the mouse is
over, because the very fact that this particular MouseMove event has been
fired tells you what object the mouse is over. For example ...
Private Sub Command0_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Me.Label3.Caption = "The mouse is over the 'Command0' object, or I would
not have been fired"
End Sub
Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Me.Label3.Caption = "The mouse is over the Detail object, or I would not
have been fired."
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single,
Y As Single)
Me.Label3.Caption = "The mouse is over the form and not over any object
contained within the form, or I would not have been fired."
End Sub
Private Sub List1_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Me.Label3.Caption = "The mouse is over the 'List1' object, or I would
not have been fired"
End Sub