语言

AxHost.KeyPress 活动

定义

类不支持KeyPress该AxHost事件。

public:
 event System::Windows::Forms::KeyPressEventHandler ^ KeyPress;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.KeyPressEventHandler KeyPress;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.KeyPressEventHandler? KeyPress;
[<System.ComponentModel.Browsable(false)>]
member this.KeyPress : System.Windows.Forms.KeyPressEventHandler 
Public Custom Event KeyPress As KeyPressEventHandler 

事件类型

特性

注解

如果尝试添加或删除事件的 KeyPress 处理程序,则会引发一个 NotSupportedException 。 类不支持Control从AxHost类派生的事件。 创建包装器时 AxHost ActiveX 控件公开的事件是应使用的事件。

适用于