WindowsUtilitiesEnableWindow 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.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static bool EnableWindow(
IntPtr handle,
bool enable
)
Parameters
- handle
- Type: SystemIntPtr
A handle to the window to be enabled or disabled. - enable
- Type: SystemBoolean
if set to true enable the window; otherwise disable it.
Return Value
Type:
Booleantrue if the window was previously disabled; otherwise false.
See Also