Back to Devexpress

Creating Tabbed Groups

windowsforms-2248-controls-and-libraries-form-layout-managers-layout-and-data-layout-controls-tabbed-groups-creating-tabbed-groups.md

latest3.2 KB
Original Source

Creating Tabbed Groups

  • Dec 15, 2018
  • 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).

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

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

  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.

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

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

Creating Layout Items

Creating Layout Groups

Creating Tabbed Groups at Design Time