ControlEventArgs.Control Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the control object used by this event.

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

member Control : Control with get

Property Value

Type: System.Windows.Forms.Control

The Control used by this event.

The following code example demonstrates the use of the ControlAdded and ControlRemoved events. The example requires that two Button controls are added to the form and connected to the addControl_Click and removeControl_Click event handling methods.

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

.NET Framework
Available since 1.1
Return to top