Show / Hide Table of Contents

Method wnd.Activate


Overload

Activates this window. Also makes it visible and not minimized. The active window is in the foreground and receives keyboard and mouse input.

public wnd Activate()
Returns
wnd

Self.

Exceptions
AuWndException

Failed to activate.

InputDesktopException

Remarks

Activating a window usually also uncloaks it, for example switches to its virtual desktop on Windows 10/11. Fails (throws exception) if cannot activate this window, except:

  • When this is a control. Then activates its top-level parent window.
  • When the window's process instead activates another window of the same thread.
  • If this is wnd.getwnd.root, just deactivates the currently active window.

See Also

wnd.ActivateL
wnd.IsActive
wnd.active
wnd.switchActiveWindow