Uredi

Deli z drugimi prek


ComboBox.OnKeyPress(KeyPressEventArgs) Method

Definition

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)

Parameters

e
KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

Remarks

If 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.

Applies to