C# .net防止一个程序(WinForm)重复运行的方法。
摘要:
//在写一些服务型的软件的时候,你可能不希望一个操作系统里有两个副本在运行,这样也许会扰乱你的操作。这时,你就需要限制程序的副本。下面的这个方法,很简单的就可以实现上述功能。usingSystem;usingSystem.Collections.Generic;usingSystem.Windows.Forms;usingSystem.Diagnostics;namespaceTestProcessCount{staticclassProgram{///<summary>///Themainentrypointfortheapplication.///</summary> 阅读全文
posted @ 2011-03-03 10:56 sixiiweb 阅读(3624) 评论(0) 推荐(0)
浙公网安备 33010602011771号