ComboBox::OnKeyPress Method (KeyPressEventArgs^)

 

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