Prevent user from opening up a second app.

  • Thread starter Thread starter Danzellen
  • Start date Start date
D

Danzellen

Guest
Basically I have an app that, when x'd out of, simply closes the window but remains running and is accessible by the tray (until the user exits from there). If the program is fully closed, clicking on the .exe file causes it to open up--as it should. However, if the file is already running and the user clicks on the .exe file, it opens another instance of the app instead of simply having the window of the current running app pop up.

Is there a way I can fix this? I.e.

if (app-is-closed) {

open-app;

} else {

bring-up-current-window;

}

Continue reading...
 
Back
Top