only one instance

    技术2022-05-11  68

      using System.Diagnostics;Process current = Process.GetCurrentProcess();            Process[] processes = Process.GetProcessesByName(current.ProcessName);            if (processes.Length > 1)            {                return;            }

                Application.EnableVisualStyles();            Application.SetCompatibleTextRenderingDefault(false);            Application.Run(new sendmsg());


    最新回复(0)