Control Design

The main functional requirement of the OutlookBar control is that the control will host other controls within the OutlookBarTab components. Each new child control will be associated with a particular tab within the OutLookBar, and that child control will be activated when its parent tab is selected. Figure 8.1 shows the OutlookBar control hosting a TreeView control and a Panel control.

Figure 8.1. The OutlookBar control in action.

Because the OutlookBar control will act as a container control for other .NET controls, the emphasis of this chapter is to demonstrate the implementation of this particular requirement. Extending the

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.