Working with the TabStrip Control

The TabStrip control is an ActiveX control used to display bitmaps and custom graphics. Typically, you place other controls over the TabStrip control.

The TabStrip is not a container control; it changes its appearance only to indicate which tab a user selects. The TabStrip control has properties that define the appearance of the tabs and events to react to mouse and keyboard events. For example, the MultiLine property determines if a control displays a tiered set of tabs or a scrolling linear tab set.

The TabStrip control provides a Tabs collection that supports adding and removing Tabs. Each tab has a Caption property and an Image property. The caption property defines the text shown on the tab. The Image property defines the image used from an ImageList. You can set the ImageList property to the hImageList property of an ImageList control to specify the images used by the control. To remove all the tabs from a TabStrip control, call the Clear method of the Tabs collection.

When a user selects a Tab, the Tab object selected by the user moves to the front of the TabStrip and sets the Selected property to True.