Export (0) Print
Expand All
Expand Minimize

Control.InvokeOnClick Method

Raises the Click event for the specified control.

[Visual Basic]
Protected Sub InvokeOnClick( _
   ByVal toInvoke As Control, _
   ByVal e As EventArgs _
)
[C#]
protected void InvokeOnClick(
 Control toInvoke,
 EventArgs e
);
[C++]
protected: void InvokeOnClick(
 Control* toInvoke,
 EventArgs* e
);
[JScript]
protected function InvokeOnClick(
   toInvoke : Control,
 e : EventArgs
);

Parameters

toInvoke
The Control to assign the Click event to.
e
An EventArgs that contains the event data.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace

Show:
© 2014 Microsoft