摘要:
添加Microsoft.VisualBasic引用,头引用using Microsoft.VisualBasic.ApplicationServices;打开App.xaml.cs文件,将文件修改为如下class Program { [STAThread] static void Main(string[] args) { SingleInstanceApp a = new SingleInstanceApp(); a.Run(args); } } /// <summary> ... 阅读全文