---
title: "TabControl in C#.Net"  
description: "The TabControl control is a container control that allows you to display multiple tab on a single form and it allowed switching between the tabs.  How"  
author: "Anonymous User"  
published: 2011-01-24  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/403/tabcontrol-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# TabControl in C#.Net

The TabControl control is a container control that allows you to display multiple tab on a single form and it allowed switching between the tabs.\

##### How to use TabControl

Drag and drop TabControl from Toolbox on the window Form.

![TabControl in C#.Net](https://www.mindstick.com/mindstickarticle/47ff355b-322c-4cc2-b05f-671cf76f709b/images/2bafe0f5-a6a7-4772-a13e-9a77b1c5ef3e.png)

Change header text of TabPages

##### Example:

```
private void frmTabControl_Load(object sender,  EventArgs e){       // Header text of TabPage1 will be chnage       tabPage1.Text = "Email id";       // Header text of TabPage2 will be chnage       tabPage2.Text = "Language"; }
```

When you run the project then Header Text of TabPages will be changed.\

![TabControl in C#.Net](https://www.mindstick.com/mindstickarticle/47ff355b-322c-4cc2-b05f-671cf76f709b/images/b90eab31-f938-4c45-8b69-2e93ac519a82.png)

##### Other control can be place in TabPages.

\

![TabControl in C#.Net](https://www.mindstick.com/mindstickarticle/47ff355b-322c-4cc2-b05f-671cf76f709b/images/01a166e6-125f-44d2-81ce-d8bb86e0d88e.png)

When you click LangaugeTab then Language TabPage will open.

![TabControl in C#.Net](https://www.mindstick.com/mindstickarticle/47ff355b-322c-4cc2-b05f-671cf76f709b/images/fc5cb403-90f7-46a9-9bb6-aac3e311b4d2.png)

##### Add tab pages in TabControl

##### Example:

```
private void frmTabControl_Load(object sender,  EventArgs e){            // add new tab page in tabcontrol            tabControl1.TabPages.Add("Database"); }
```

\

When you execute the application then new TabPage will be add.

![TabControl in C#.Net](https://www.mindstick.com/mindstickarticle/47ff355b-322c-4cc2-b05f-671cf76f709b/images/4ac54d1c-9100-4ce0-8f68-56c3847fa902.png)

New TabPage with name Database is added.

##### TabControl properties

**ItemSize:** Gets or sets the size of the control's tabs.

**TabStop:** Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

**Visible:** Gets or sets a value indicating whether the control and all its child controls are displayed.

**TabCount:** The number of tabs in the tab strip.

\

---

Original Source: https://www.mindstick.com/articles/403/tabcontrol-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
