摘要: 错误代码一 //单独单开exe的时候,是没有问题的//此代码的问题在于,打开两个或多个独立的VS程序后,并且这些VS打开的项目的名字相同的话,会有多个进程主模块名字相同,但是进程ID不同的程序 导致无法启动实例【一个程序都打不开】 Process current = Process.GetCurre 阅读全文
posted @ 2015-01-08 17:08 ChuckLu 阅读(389) 评论(1) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/184084/how-to-force-c-sharp-net-app-to-run-only-one-instance-in-windows using System.Threading; [DllImport("user32. 阅读全文
posted @ 2015-01-08 11:35 ChuckLu 阅读(4069) 评论(2) 推荐(1) 编辑