Control.RaiseKeyEvent(Object, KeyEventArgs) Control.RaiseKeyEvent(Object, KeyEventArgs) Control.RaiseKeyEvent(Object, KeyEventArgs) Control.RaiseKeyEvent(Object, KeyEventArgs) Method

定義

引發適當的按鍵事件。Raises the appropriate key event.

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 Object Object Object

要引發的事件。The event to raise.

e
KeyEventArgs KeyEventArgs KeyEventArgs KeyEventArgs

KeyEventArgs,其中包含事件資料。A KeyEventArgs that contains the event data.

適用於

另請參閱