Name

ControlEventArgs

Synopsis

These are the EventArgs for the ControlAdded and ControlRemoved events, raised by a Control when objects are added to, or removed from, its ControlCollection. You can retrieve the identity of the object affected by using the Control property.


public class ControlEventArgs : EventArgs {

// Public Constructors

   public ControlEventArgs(Control control);

// Public Instance Properties

   public Control Control{get; }

}

Hierarchy

System.Object System.EventArgs ControlEventArgs

Passed To

Control.{OnControlAdded(), OnControlRemoved()}, ControlEventHandler.{BeginInvoke(), Invoke()}

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.