แก้ไข

แชร์ผ่าน


NumericUpDown.OnTextBoxKeyPress(Object, KeyPressEventArgs) Method

Definition

Raises the KeyPress event.

protected:
 override void OnTextBoxKeyPress(System::Object ^ source, System::Windows::Forms::KeyPressEventArgs ^ e);
protected override void OnTextBoxKeyPress (object source, System.Windows.Forms.KeyPressEventArgs e);
protected override void OnTextBoxKeyPress (object? source, System.Windows.Forms.KeyPressEventArgs e);
override this.OnTextBoxKeyPress : obj * System.Windows.Forms.KeyPressEventArgs -> unit
Protected Overrides Sub OnTextBoxKeyPress (source As Object, e As KeyPressEventArgs)

Parameters

source
Object

The source of the event.

e
KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

Remarks

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.

Applies to