In This Article

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.

[Browsable(false)]
public Keys ChordKey { get; set; }

Property Value

Keys

DefaultSize

The default size of the control.

protected override Size DefaultSize { get; }

Property Value

Size

Key

The Keys that is the main shortcut key.

[Browsable(false)]
public Keys Key { get; set; }

Property Value

Keys

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:

true if the command key was processed by the control; otherwise, false.

Inherited Members

Extension Methods