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