System.Threading.Mutex appSingleton = new System.Threading.Mutex(false, "MyProgInstance_PPP"); if(appSingleton.WaitOne(0, false)) { Application.Run(new FormMain();); } else { MessageBox.Show("程序已经运行"); }