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

适用于

另请参阅