Run single instance of an application
-
Hi all, I have created windows application in c#, it is Sample.exe, If this exe is already running, andmeanwhile if double click and initiate one more instance of Sample.exe it should point to already running Sample.exe. Concept is simple if my windows media player is running say a movie file is being run. and if I launch media player from shortcut it will still show the already running one instead of opening the separate media player. Is it possible to do so for my application, how can I apply same logic to my Sample.exe Thanks,
ashok
-
Hi all, I have created windows application in c#, it is Sample.exe, If this exe is already running, andmeanwhile if double click and initiate one more instance of Sample.exe it should point to already running Sample.exe. Concept is simple if my windows media player is running say a movie file is being run. and if I launch media player from shortcut it will still show the already running one instead of opening the separate media player. Is it possible to do so for my application, how can I apply same logic to my Sample.exe Thanks,
ashok
-
Hi all, I have created windows application in c#, it is Sample.exe, If this exe is already running, andmeanwhile if double click and initiate one more instance of Sample.exe it should point to already running Sample.exe. Concept is simple if my windows media player is running say a movie file is being run. and if I launch media player from shortcut it will still show the already running one instead of opening the separate media player. Is it possible to do so for my application, how can I apply same logic to my Sample.exe Thanks,
ashok
Here you are: Single Instance Application, Passing Command Line Arguments[^]
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion