开发者

Maintaining single instance application

开发者 https://www.devze.com 2022-12-30 08:02 出处:网络
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.

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=

0

精彩评论

暂无评论...
验证码 换一张
取 消