ComboBox.OnKeyPress(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 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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.