Use this function in Program.Main()
private static bool IsAlreadyRunning()
{
string currentProcessName = Process.GetCurrentProcess().ProcessName;
Process[] processesNamesCollection = Process.GetProcessesByName(currentProcessName);
if (processesNamesCollection.Length > 1)
return true;
else
return false;
}
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.