Constructors: NewConsoleKeyInfo

NewConsoleKeyInfo

Returns a new ConsoleKeyInfo object that represents the state of a key press.



 Public Function NewConsoleKeyInfo(
	  ByVal KeyChar As Integer,
	  ByVal Key As ConsoleKey,
	  ByVal Shift As Boolean,
	  ByVal Alt As Boolean,
	  ByVal Control As Boolean ) As ConsoleKeyInfo

Parameters

KeyChar
[ByVal] Integer. The Asc value of the key pressed.
Key
[ByVal] ConsoleKey. The key code of the pressed key.
Shift
[ByVal] Boolean. Whether the shift key was pressed.
Alt
[ByVal] Boolean. Wheter the alt key was pressed.
Control
[ByVal] Boolean. Whether the control key was pressed.

Return Values

ConsoleKeyInfo -  A new ConsoleKeyInfo object.

Remarks

See Also

Project VBCorLib Overview Class Constructors Overview Constructors Properties Constructors Methods NewCharEnumerator NewCryptoAPIHash