I don't know if this is very effective.
My theory is that if the label detects a mouse_move event then it starts playing. when the mouse moves anywhere else on the form, then stops playing.
So maybe add a mouse_move event on the form it self to stop the music playing
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Debug.Print "stop playing"
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Debug.Print "play"
End Sub
Last edited by bushman_222; Jul 23rd, 2008 at 11:03 am.
Reputation Points: 10
Solved Threads: 4
Junior Poster in Training
Offline 65 posts
since Jan 2008