共用方式為


Control.RaiseKeyEvent(Object, KeyEventArgs) 方法

定義

引發適當的按鍵事件。

protected:
 void RaiseKeyEvent(System::Object ^ key, System::Windows::Forms::KeyEventArgs ^ e);
protected void RaiseKeyEvent (object key, System.Windows.Forms.KeyEventArgs e);
member this.RaiseKeyEvent : obj * System.Windows.Forms.KeyEventArgs -> unit
Protected Sub RaiseKeyEvent (key As Object, e As KeyEventArgs)

參數

key
Object

要引發的事件。

e
KeyEventArgs

KeyEventArgs,其中包含事件資料。

適用於

另請參閱