开发者

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=

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜