System.Windows.Forms.ContainerControl Class

Provides focus-management functionality for controls that can function as a container for other controls.

See Also: ContainerControl Members


public class ContainerControl : ScrollableControl, IContainerControl


A System.Windows.Forms.ContainerControl represents a control that can function as a container for other controls and provides focus management. Controls that inherit from this class can track the active control they contain, even when the focus moves somewhere within a different container.

System.Windows.Forms.ContainerControl objects provide a logical boundary for contained controls. The container control can capture the TAB key press and move focus to the next control in the collection.


The container control does not receive focus; the focus is always set to the first child control in the collection of contained controls.

You do not typically inherit directly from the System.Windows.Forms.ContainerControl class. System.Windows.Forms.Form, System.Windows.Forms.UserControl, and System.Windows.Forms.UpDownBase classes inherit from System.Windows.Forms.ContainerControl.


Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0,