Export (0) Print
Expand All
Expand Minimize

ComboBox::OnKeyPress Method

Raises the KeyPress event.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
virtual void OnKeyPress(
	KeyPressEventArgs^ e
) override

Parameters

e
Type: System.Windows.Forms::KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft