public static void ShowToFront(IntPtr window) { ShowWindow(window, SW_SHOWNORMAL); SetForegroundWindow(window); } }