日期:2014-05-18 浏览次数:20717 次
System.Threading.Mutex mutex = new System.Threading.Mutex(false,"MES"); bool Running = !mutex.WaitOne(0, false); if (Running) { MessageBox.Show("另一个进程正在运行!", "提示", MessageBoxButtons.OK,MessageBoxIcon.Information); } else { }