记录一下工作中遇到的场景。单例运行程序同时还要将程序隐藏到系统托盘,再次启动程序时如果已存在需要调出隐藏的程序 Mutex 互斥锁 程序启动入口添加互斥锁判断: public System.Threading.Mutex mutex; public static bool AppSingleton