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.
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.
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.
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.
In the Properties window for your Tab Control, select the button with the ellipses:
You can add, remove, edit and reorder your Tab Pages in this editor:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With