TabControl Class
The TabControl class is used to add tabs to a form. Tabs provide a way to save space and avoid a cluttered and confusing UI when many controls are needed in a form. To use a tab control in a form, first create an object of type TabControl and add it to the form. Objects of type TabPage can then be created, populated with other controls such as buttons and checkboxes, and added to the tab control. The currently selected tab is identified by the tab control’s SelectedIndex property.
var: TabControl allTabs(null), TabPage myTab1(null); // declare a TabControl and TabPage
{declare other form controls}
myTab1 = TabPage.Create("FirstTab",400,300); // create a tab page with a button and label
myTab1.AddControl(aButton);
myTab1.AddControl(aLabel);
allTabs = TabControl.Create(); // create a tab control and add a tab page
allTabs.AddControl(myTab1);
{create other form controls and add them all to a form}
For more information, see Using Form Classes.
Namespace: elsystem.windows.forms