Maybe this is helpful, it tries to switch to the first running instance:
static class Program
public static extern bool SetForegroundWindow(IntPtr hWnd);
static void Main()
Process oProcess = Process.GetCurrentProcess();
Process aoProcesses = Process.GetProcessesByName(oProcess.ProcessName);
if (aoProcesses.Length > 1)
"The application \""
+ "\" is already running.", "Ultrasimple");
oProcess.Id ? 1 : 0].MainWindowHandle);
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.