public void OpenFormWindow(Form form) { if (form.WindowState == FormWindowState.Minimized && !SharedObjects.IsMonoRunning()) { DisplayUtils.ShowWindow(form.Handle, 9U); } ((Control)form).Show(); form.BringToFront(); }
public bool BringWindowToFront(int hWnd) { bool flag = false; if (!SharedObjects.IsMonoRunning()) { DisplayUtils.ShowWindow((IntPtr)hWnd, 9U); flag = DisplayUtils.SetForegroundWindow(hWnd); } return(flag); }