語言

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 ,就會擲出 a NotSupportedException 。 從該 Control 類別衍生出的事件不由 AxHost 該類別支援。 當 ActiveX 控制項建立包裝器時 AxHost 所暴露的事件,就是應該使用的事件。

適用於