A 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.
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.
Note: |
|---|
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 ContainerControl class. Form, UserControl, and UpDownBase classes inherit from ContainerControl.