Registers new hot key.

Namespace:  Greatis.Nostalgia
Assembly:  Greatis.Nostalgia (in Greatis.Nostalgia.dll)

Syntax

Visual Basic (Declaration)
Public Function RegisterKey ( _
	Key As Keys, _
	Control As Boolean, _
	Alt As Boolean, _
	Shift As Boolean, _
	Win As Boolean _
) As Integer
C#
public int RegisterKey(
	Keys Key,
	bool Control,
	bool Alt,
	bool Shift,
	bool Win
)
Visual C++
public:
int RegisterKey(
	Keys Key, 
	bool Control, 
	bool Alt, 
	bool Shift, 
	bool Win
)
JavaScript
function registerKey(Key, Control, Alt, Shift, Win);

Parameters

Key
Type: System.Windows.Forms..::.Keys
Hot key.
Control
Type: System..::.Boolean
True for Control modifier.
Alt
Type: System..::.Boolean
True for Alt modifier.
Shift
Type: System..::.Boolean
True for Shift modifier.
Win
Type: System..::.Boolean
True for Win modifier.

Return Value

New hot key identifier that can be used in HotKeyPressed event and must be passed to UnregisterKey. Returns 0 when fail (invalid key or key already registered).

See Also