Process[] proc = Process.GetProcessesByName("Processname"); if (proc.Length > 1) { MessageBox.Show(" Process is Run", "form1", MessageBoxButtons.OK, MessageBoxIcon.Warning); Application.Exit(); } else { Application.EnableVisualStyles(); // Application.SetCompatibleTextRenderingDefault(true); Application.Run(new Form3()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)