NumericUpDown.OnTextBoxKeyPress(Object, KeyPressEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.