System.Windows.Forms.NumericUpDown.OnTextBoxKeyPress Method

Raises the Control.KeyPress event.

Syntax

protected override void OnTextBoxKeyPress (object source, KeyPressEventArgs e)

Parameters

source
The source of the event.
e
A System.Windows.Forms.KeyPressEventArgs that contains the event data.

Remarks

The System.Windows.Forms.NumericUpDown control accepts only digits, the negative sign, the decimal point, and editing keystrokes, such as BACKSPACE. If the NumericUpDown.Hexadecimal property is set to true, System.Windows.Forms.NumericUpDown accepts hexadecimal digits.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0