2010年6月19日
摘要: 实现单实例应用程序的方法比较多,我列举一些常用的方法: 1,使用互斥体: static void Main() { bool isOnlyOne; System.Threading.Mutex mtx = new System.Threading.Mutex (false, "OnlyOne", out isOnlyOne); if (isOnlyOne) { Application... 阅读全文
posted @ 2010-06-19 09:23 周雪峰 阅读(2007) 评论(3) 推荐(2) 编辑