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());