BarKeyboardShortcutTextBox Class
Provides a TextBox that accepts keyboard shortcuts for a run-time customize dialog.
[ToolboxBitmap(typeof(BarKeyboardShortcutTextBox))]
public class BarKeyboardShortcutTextBox : TextBox, IDisposable
- Inheritance:
- object MarshalByRefObject Component Control TextBoxBase TextBox object
- Implements:
- IDisposable
Constructors
BarKeyboardShortcutTextBox()
Initializes an instance of the class.
public BarKeyboardShortcutTextBox()
Properties
ChordKey
The Keys that starts the chord.
DefaultSize
The default size of the control.
Key
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 KeyEventArgs that contains the event data. |
OnKeyPress(KeyPressEventArgs)
Raises the KeyPress event.
protected override void OnKeyPress(KeyPressEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyPressEventArgs | A KeyPressEventArgs that contains the event data. |
OnKeyUp(KeyEventArgs)
protected override void OnKeyUp(KeyEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyEventArgs |
ProcessCmdKey(ref Message, Keys)
Processes a command key.
protected override bool ProcessCmdKey(ref Message m, Keys keyData)
| Parameter | Type | Description |
|---|---|---|
| m | Message | A Message, passed by reference that represents the window message to process. |
| keyData | Keys | One of the Keys values that represents the shortcut key to process. |
Returns
- bool:
trueif the command key was processed by the control; otherwise,false.
Inherited Members
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()