Click or drag to resize

WindowsUtilitiesSetFocus Method

Sets the keyboard focus to the specified window. The window must be attached to the calling thread's message queue.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static IntPtr SetFocus(
	IntPtr handle
)

Parameters

handle
Type: SystemIntPtr
The window handle.

Return Value

Type: IntPtr
A handle to the window that previously had the keyboard focus.
See Also