Control.InvokeOnClick(Control, EventArgs) 方法

定義

引發指定之控制項的 Click 事件。

protected:
 void InvokeOnClick(System::Windows::Forms::Control ^ toInvoke, EventArgs ^ e);
protected void InvokeOnClick (System.Windows.Forms.Control toInvoke, EventArgs e);
protected void InvokeOnClick (System.Windows.Forms.Control? toInvoke, EventArgs e);
member this.InvokeOnClick : System.Windows.Forms.Control * EventArgs -> unit
Protected Sub InvokeOnClick (toInvoke As Control, e As EventArgs)

參數

toInvoke
Control

要為其指定 Control 事件的 Click

e
EventArgs

包含事件資料的 EventArgs

適用於