Bewerken

Delen via


Develop a composite Windows Forms control

You can develop a composite Windows Forms control by combining other Windows Forms controls. Composite controls that derive from UserControl are called user controls. The base class, UserControl, provides keyboard routing for the child controls, thus ensuring that child controls can receive focus. For an example of a user control, see the UserControl sample in How to: Apply Attributes in Windows Forms Controls.

The Windows Forms designer in Visual Studio provides rich design-time support for authoring user controls.

See also