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

Definition

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)

Parameters

toInvoke
Control Control Control Control

The Control to assign the Click event to.

e
EventArgs EventArgs EventArgs EventArgs

An EventArgs that contains the event data.

Applies to