Control.InvokeOnClick(Control, EventArgs) Control.InvokeOnClick(Control, EventArgs) Control.InvokeOnClick(Control, EventArgs) Control.InvokeOnClick(Control, EventArgs) Method

定義

引發指定之控制項的 Click 事件。Raises the Click event for the specified control.

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

要為其指定 Control 事件的 ClickThe Control to assign the Click event to.

e
EventArgs EventArgs EventArgs EventArgs

包含事件資料的 EventArgsAn EventArgs that contains the event data.

適用於