ComboBox.OnKeyPress Method (KeyPressEventArgs)

 

Raises the KeyPress event.

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

Protected Overrides Sub OnKeyPress (
	e As KeyPressEventArgs
)

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: