Control.InvokeOnClick(Control, EventArgs) 方法

定义

为指定的控件引发 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 事件的 ClickThe Control to assign the Click event to.

e
EventArgs

包含事件数据的 EventArgsAn EventArgs that contains the event data.

适用于