摘要:
判断程序是否已经运行,使程序只能运行一个实例有很多方法,下面记录两种,方法1:线程互斥 static class Program { private static System.Threading.Mutex mutex; /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); ... 阅读全文
posted @ 2012-03-22 18:46
冬雨在路上
阅读(16213)
评论(1)
推荐(9)