i am looking for a method that i can't find anywhere, maybe i'm unable to search, i wish my single instance executable can be reopened by reopening its executable, let me explain better. I open the executable, the form hides, I re-open the exe and the form of the first executable returns to me without opening another instance, I hope I made myself understood
i have this code in mainwindow.iniz...
Process[] Processes = Process.GetProcesses();
        int Count = 0;
        foreach (Process Proc in Processes)
        {
            if (Process.GetCurrentProcess().ProcessName == Proc.ProcessName)
            {
                Count++;
            }
        }
        if (Count > 1)
        {
            Process.GetCurrentProcess().Kill();
        }
