这里主要使用Mutex类,该类来自System.Threading; 主要代码 bool multi=false; Mutex mu=new Mutex(true,"进程名称",out multi); if(!multi) return;