AxHost.KeyDown Event


The KeyDown event is not supported by the AxHost class.

 event System::Windows::Forms::KeyEventHandler ^ KeyDown;
public event System.Windows.Forms.KeyEventHandler KeyDown;
member this.KeyDown : System.Windows.Forms.KeyEventHandler 
Public Custom Event KeyDown As KeyEventHandler 


If you attempt to add or remove a handler for the KeyDown event, a NotSupportedException is thrown. The events derived from the Control class are not supported by the AxHost class. The events exposed by the ActiveX control when the AxHost wrapper is created are the events that should be used.

Applies to