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
Why post this on General Database forum instead of C# forum :confused: However, try searching the articles. Plenty of good samples: http://www.codeproject.com/info/search.aspx?artkw=application+single+instance&sbo=kw[^]
The need to optimize rises from a bad design.My articles[^]
-
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
I don't see the connection with databases? You should be asking this in the C# forum.
*Developer Day Scotland - Free community conference *Colin Angus Mackay's Blog *Latest Scottish Developers Newsletter
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Remember that the force of gravity can go up as well as down.
-
I don't see the connection with databases? You should be asking this in the C# forum.
*Developer Day Scotland - Free community conference *Colin Angus Mackay's Blog *Latest Scottish Developers Newsletter
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Remember that the force of gravity can go up as well as down.