ComboBox.OnKeyPress Method (KeyPressEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Raises the KeyPress event.

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

protected override void OnKeyPress(
	KeyPressEventArgs e
)

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
Available since 1.1
Return to top
Show: