HighTechTalks DotNet Forums  

Running a single copy of the application

Dotnet Framework microsoft.public.dotnet.framework


Discuss Running a single copy of the application in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alexander Vasilevsky
 
Posts: n/a

Default Running a single copy of the application - 01-03-2008 , 04:10 AM






That is, if the application is already running, and it gets repeated again,
what would not start a second copy.

http://www.alvas.net - Audio tools for C# and VB.Net developers



Reply With Quote
  #2  
Old   
Michael Nemtsev [MVP]
 
Posts: n/a

Default Re: Running a single copy of the application - 01-03-2008 , 04:27 AM






Hello Alexander,

Use "global" mutex to have single copy of your app. Use MSDN to find detailed
info about global mutex

btw, u can find samples in this article http://codeproject.com/KB/cs/singlei...plication.aspx


---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


AV> That is, if the application is already running, and it gets repeated
AV> again, what would not start a second copy.
AV>
AV> http://www.alvas.net - Audio tools for C# and VB.Net developers
AV>



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.