Defines a base class for controls that contain other controls.
Object
MarshalByRefObject
MarshalByRefComponent
Control
RichControl
ScrollableControl
ContainerControl
[Visual Basic] Public Class ContainerControl Inherits ScrollableControl Implements IContainerControl [C#] public class ContainerControl : ScrollableControl, IContainerControl [C++] public __gc class ContainerControl : public ScrollableControl, IContainerControl [JScript] public class ContainerControl extends ScrollableControl, IContainerControl
This class implements focus management. Controls that inherit from this class can track the active control within their containment, even when actual focus moves somewhere within a different container.
You do not typically inherit from this class. Within the WinForms, the Form, UserControl, and up-down controls inherit from ContainerControl.
Namespace: System.WinForms
Assembly: System.WinForms.dll