When your application is in the background the visible property of all controls will return false. So you can check the visible control of a control that should be visible and if it's false then your application is running in the background.
Calling Form.Show will activate your application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.