Skip to main content

Creating Tabbed Groups

  • 2 minutes to read

This document shows how you can create tabbed groups at design and runtime.

Creating Tabbed Groups at Design Time

To create a new tabbed group do the following.

  1. Select a layout item by clicking it with the mouse (or select multiple adjacent layout items by clicking them while holding the SHIFT key down).

    CD_CreateTabbedGroup_10_SelectItems

  2. Right-click the selection to open the Context Menu and then choose the Create Tabbed Group command.

    CD_CreateTabbedGroup_15_GroupMenu

    A new tabbed group will be created. The selected items will be placed into a new regular layout group, and then this group will be added as a tab to the created tabbed group.

    CD_CreateTabbedGroup_20_NewGroup

  3. Right-click the tab and select Rename in the context menu to give a meaningful caption to the tab.

    CD_CreateTabbedGroup_25_ChangeGroupName

    Tip

    Alternatively, you can rename the tab by setting the Text property in the Properties grid (click the tab to list its settings in the Properties grid).

  4. To add a new tab, right-click the tab group’s header region and select the Add Tab command. You can then add existing items to this tab using drag-and-drop.

    CD_CreateTabbedGroup_30_AddTab

  5. Another way to add a tab is by dragging an existing group to the tab header region.

    CD_CreateTabbedGroup_35_NewTabbedGroup

Creating Tabbed Groups at Runtime

Tabbed groups can be created in code using the following methods.

A newly created tabbed group is always empty. To add tab pages to this group, use the TabbedControlGroup.AddTabPage method.

Task-Based Help

See Also