I have tried many things, but the form's Leave/Deactivate events don't work. I have a program that has multiple forms open at once (one of them is a tool window), and I want to be able to detect when the user switches to a different program's window.
My program is a game, and I want it to pause automatically when not being played.
Can anyone help? Thanks in advance.
My program is a game, and I want it to pause automatically when not being played.
Can anyone help? Thanks in advance.
Last edited: