ComboBox.OnKeyPress(KeyPressEventArgs) 方法

定義

引發 KeyPress 事件。

protected:
 override void OnKeyPress(System::Windows::Forms::KeyPressEventArgs ^ e);
protected override void OnKeyPress (System.Windows.Forms.KeyPressEventArgs e);
override this.OnKeyPress : System.Windows.Forms.KeyPressEventArgs -> unit
Protected Overrides Sub OnKeyPress (e As KeyPressEventArgs)

參數

e
KeyPressEventArgs

KeyPressEventArgs,其中包含事件資料。

備註

如果 的 屬性值為 或 ,而 DroppedDown 屬性為 true ,則 方法會將 OnKeyPress 設定 DroppedDownfalseEscapeReturneKeyChar

適用於