ACAT.Extensions.Default.FunctionalAgents.FileBrowserAgent.FileBrowserAgent.activateWindow C# (CSharp) Method

activateWindow() private method

Activates the window represented by the handle and sets it as the foreground window
private activateWindow ( IntPtr handle ) : void
handle System.IntPtr
return void
        private void activateWindow(IntPtr handle)
        {
            if (handle != IntPtr.Zero)
            {
                User32Interop.BringWindowToTop(handle);
                User32Interop.SetFocus(handle);
                Thread.Sleep(1000);
                Windows.SetForegroundWindow(handle);
            }
        }