OnTextBoxKeyPress Method

NumericUpDown.OnTextBoxKeyPress Method (Object, KeyPressEventArgs)


This API supports the product infrastructure and is not intended to be used directly from your code.

Raises the KeyPress event.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected override void OnTextBoxKeyPress(
	object source,
	KeyPressEventArgs e


Type: System.Object

The source of the event.

Type: System.Windows.Forms.KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

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

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft