Button.PerformClick Method ()

 

Generates a Click event for a button.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

abstract PerformClick : unit -> unit
override PerformClick : unit -> unit

This method can be called to raise the Click event.

The following code example generates a Click event of a Button on alternating Click events of another button. This code assumes that two Button controls have been instantiated on a form and that a member variable named myVar has been declared as a 32-bit signed integer within the class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: