4 replies
by lo
Been a bit, but ... Not sure what the event is called, there is a 'Mouse Over' that triggers when the cursor 'goes over' a control. Various other events would detect mouse activity. Look in the properties of a controll, . . . B U T ...
Why would you want to do that. If you had it working (even on just some controlls), an 'inadvertent crossing over' or bump of a table would generate movement and trigger an end prograam. Depending on what/where/how, you may have a really 'dissatisfied'user.
What is the 'real' problem you are trying to solve? 'If mouse movement = Yes then End Program' is a solution, why does it exist in the code? Why not put an an Exit buttone, or some such? A timer? A message box that says 'Do you want to Terminate?' (that one will get old really fast also). lo
by sabufaisal
by kirya
I don't understand why do yuo need this but you can use this code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Unload Me
End Sub
by sabufaisal
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending