Designer Base Classes

Like controls, designers have several base classes to choose from. Each designer base class provides certain functionality that builds on the support provided by the inherited base designer class. At the root of the designer hierarchy is the ComponentDesigner class.

Not every control in .NET is an actual control. Rather, certain items are components that derive from System.ComponentModel.Component. A component has no UI of its own and is often used to hold information for part of its containing control. The Windows Forms Menu and ImageList are two such components. When a component is placed on a Form object, an icon for the component appears within the Component Tray of VS .NET, as shown in Figure 5.2.

Figure 5.2. The VS ...

Get .NET Windows® Forms Custom Controls 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.