Checking if an application is already running
static public bool AlreadyRunning()
{
string processName = Process.GetCurrentProcess().ProcessName;
Process[] processes = Process.GetProcessesByName(processName);
return (processes.Length > 1);
}
Comments have been disabled for this content.