Setting tab order in tab control

Posted on 2010-01-09
Medium Priority
Last Modified: 2013-12-17
I have code which will allow my users to manipulate the tab order in a tab control.  I have no problem saving the order to a configuration file when the program exits, but can't seem to figure out how to change the order programmatically when the program starts.

Any ideas?
Question by:rmmarsh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 26275186
You need to set the TabIndex property of each control. The trick is, you will need to set the tab index in order beginning with the first control in the tab order, followed by the second item, etc.

Author Comment

ID: 26275193
I guess I didn't make myself clear... I need to set the index of the tab pages within the tab control, not the tab indexes.
LVL 70

Accepted Solution

Éric Moreau earned 2000 total points
ID: 26277729
in order to change the tab order, you need to remove the pages and re-add them in the correct order. notice that the content of the tabpages won't be lost.

for an example, see http://www.emoreau.com/Entries/Articles/2004/05/The-incomplete-TabControl.aspx

Author Closing Comment

ID: 31675036
Thank you...

Featured Post

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question