Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rearrange a WinForms TabControl TabPages during design time?

How to reorder TabPages during design?

In a project of mine I don't mean to implement runtime reordering, but I'd like to place the pages in a specific meaningful order after initially designing them in another order.

like image 388
Ivan Avatar asked Jul 10 '11 22:07

Ivan


People also ask

How to use tab control in visual studio?

To create a TabControl control at design-time, you simply drag and drop a TabControl control from Toolbox onto a Form in Visual Studio. After you drag and drop a TabControl on a Form, the TabControl1 is added to the Form and looks like Figure 1. A TabControl is just a container and has no value without tab pages.

How to create tabs in visual studio?

PROPERTIES OF TAB CONTROLRight-click on the tab control and select properties. You can see the tab page called "Collection Editor". To add an additional tab, please click the add button. To remove a tab, select it and click remove.

How do I change the tab control Name in Visual Studio?

You can change it pretty simply in the designer; click on a blank area in the tab page contents and use the property view to set the Text property. Also through code via: tabPage1.


1 Answers

In the Properties window for your Tab Control, select the button with the ellipses:

button to open TabPage Collection Editor

You can add, remove, edit and reorder your Tab Pages in this editor:

TabPage Collection Editor

like image 189
IAbstract Avatar answered Oct 01 '22 11:10

IAbstract