Click or drag to resize
Xcalibur Systems LLC Logo

WindowHelperEnableWindow Method

Enables or disables mouse and keyboard input to the specified window or control. When input is disabled, the window does not receive input such as mouse clicks and key presses. When input is enabled, the window receives all input.

EnableWindow function


Namespace: Xcalibur.NativeMethods.V2.Windows
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("user32.dll")]
public static bool EnableWindow(
	IntPtr windowHandle,
	bool enable
)

Parameters

windowHandle  IntPtr
A handle to the window to be enabled or disabled.
enable  Boolean
Indicates whether to enable or disable the window. If this parameter is TRUE, the window is enabled. If the parameter is FALSE, the window is disabled.

Return Value

Boolean
See Also