User32BringWindowToTop(SafeHandle) Method

Brings the specified window to the top of the Z order. If the window is a top-level window, it is activated.

If the window is a child window, the top-level parent window associated with the child window is activated.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool BringWindowToTop(
	SafeHandle hWnd
)

Parameters

hWnd  SafeHandle
A handle to the window to bring to the top of the Z order.

Return Value

Boolean
If the the window is zoomed, the return value is .

If the window is not zoomed, the return value is .

Remarks

See Also