NumericUpDown.OnTextBoxKeyPress(Object, KeyPressEventArgs) 方法

定義

引發 KeyPress 事件。

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)

參數

source
Object

事件的來源。

e
KeyPressEventArgs

KeyPressEventArgs,其中包含事件資料。

備註

控制項 NumericUpDown 只接受數位、負號、小數點,以及編輯按鍵,例如 BACKSPACE。 Hexadecimal如果 屬性設定 true 為 , NumericUpDown 則接受十六進位數位。

適用於