Prevent Multiple Copies of program running


Excellent program but it has a major usability issue.

If you use the program and try to exit using the "X" in the top right of the form to close the program it minimizes to the system tray. This action has been coded by the author. Unfortunately the author did not write code to ensure only one copy of the program is running and restore this, this leads to issues when shutting down the PC.

A simple fix is to change the code in the Form_Closing event as follows :-
private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
    //e.Cancel = !goodbye;
The program now exits when the "X" is clicked and does not cause any issues.


jerone wrote Oct 6, 2013 at 10:45 PM

Maybe a beter fix for the problem you're describing is proposed here too: https://hostprofiles.codeplex.com/workitem/9150