C# Detect for start application twice time (advanced)
Posted on 2009-07-02
Im using C# 2008 , WinForm NET 2. I have application, which if is started with command parameters start different forms (and this form stay open all the time and can not be change).
I want to make sure that this application can not be started twice on 1 computer. This is simple, but not in this case. Because in fact application is count if is started twice with same parametyr. (possible option are only 3 and are static text like param1 or param2 or param3 How to do this ?
In COM world I will ask and get for caption of application and will understand have or not have already started this application. But how I can do this via NET?
I can save let say in registry this info, but if my application fail it will not save that is close and next time is possible to be unable to start J
I need this to keep from people error with started twice time my application.