BarKeyboardShortcutTextBox Class
Provides a TextBox that accepts keyboard shortcuts for a run-time customize dialog.
public class BarKeyboardShortcutTextBox : TextBox
- Inheritance:
- Object Object
Constructors
BarKeyboardShortcutTextBox()
Initializes a new instance of the BarKeyboardShortcutTextBox
class.
public BarKeyboardShortcutTextBox()
Remarks
The default constructor initializes all fields to their default values.
Properties
ChordKey
Gets or sets the Keys that starts the chord.
public Keys ChordKey { get; set; }
Property Value
Remarks
This value may be null.
DefaultSize
Gets the default size of the control.
Key
Gets or sets the Keys that is the main shortcut key.
Methods
ClearKeys()
Clears the keys.
public void ClearKeys()
OnKeyDown(KeyEventArgs)
Raises the KeyDown
event.
protected override void OnKeyDown(KeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | KeyEventArgs | A |
OnKeyPress(KeyPressEventArgs)
Raises the KeyPress
event.
protected override void OnKeyPress(KeyPressEventArgs e)
Parameter | Type | Description |
---|---|---|
e | KeyPressEventArgs | A |
OnKeyUp(KeyEventArgs)
Raises the KeyUp
event.
protected override void OnKeyUp(KeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | KeyEventArgs | A |
ProcessCmdKey(ref Message, Keys)
Processes a key.