会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
写一篇博文表扬下自己
随笔档案-2012年07月
保证只运行一个实例应用程序
2012-07-24 16:39 by Spring.Guo, 452 阅读,
收藏
,
摘要: [STAThread] static void Main() { bool createdNew = false; Mutex mutex = new Mutex(true, “CSharpHowTo_SingleInstanceApp”, out createdNew); if (createdNew) { //没有运行实例 Application.EnableVi...
阅读全文
1 Comment
About