Tests whether are keys presses synchronously (reads the state from the Windows message queue but does not test the actual state of the device).

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static bool IsKeyPressed(
	params Keys[] keys
)

Parameters

keys
Type: array< System.Windows.Forms..::.Keys >[]()[]
Keys.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if keys are presses.

Exceptions

ExceptionCondition
System..::.ArgumentNullException keys is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also