Maintaining single instance application
I have been working on this application of mine and got this problem. Running program through command line with different arguments opens different .exe process.
My question is how can i prevent from opening same file few times, and is it possible to send new command line argument开发者_如何转开发s to already open instance of application.
Thanks.
There are standard .NET classes for that. Check out:
http://www.openwinforms.com/single_instance_application.html
http://www.smartasses.be/2009/04/24/single-instance-application-with-c/
http://www.google.be/search?source=ig&hl=nl&rlz=&q=SingleInstanceApplication&btnG=Google+zoeken&meta=
精彩评论