getProcess = Process.GetProcessesByName("Sample"); if (getProcess.Length > 0) { WINDOWPLACEMENT wp = new WINDOWPLACEMENT(); app_hwnd = getProcess[0].MainWindowHandle; GetWindowPlacement(app_hwnd, ref wp); wp.showCmd = 1; ShowWindow(app_hwnd, 9); SetForegroundWindow(app_hwnd); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)