ComboBox.OnKeyPress(KeyPressEventArgs) ComboBox.OnKeyPress(KeyPressEventArgs) ComboBox.OnKeyPress(KeyPressEventArgs) ComboBox.OnKeyPress(KeyPressEventArgs) Method

Определение

Вызывает событие KeyPress.Raises the KeyPress event.

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 KeyPressEventArgs KeyPressEventArgs

Объект KeyPressEventArgs, содержащий данные события.A KeyPressEventArgs that contains the event data.

Комментарии

KeyChar Если значение свойстваDroppedDown равноилиtruefalseсвойство равно, тоOnKeyPress метод устанавливаетDroppedDown значение. Escape Return eIf the value of the KeyChar property of e is Return or Escape and the DroppedDown property is true, the OnKeyPress method sets DroppedDown to false.

Применяется к