I think you need to delve deeper into the FindWindow and ShowWindow API calls. For instance:
[DllImport("user32.dll")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); static void Main(string[] args) { Console.Title = "ConsoleApplication1"; IntPtr h=FindWindow(null, "ConsoleApplication1"); ShowWindow(h, 0);
source share