Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


TabHandler keeps switching my tabs around

Posted on 2005-03-11
Medium Priority
Last Modified: 2010-04-16
I am designing a form in Visual Studio and everytime I change any code my tabs switch positions with eachother for no apparent reason.  Is there a way to stop this from happening?
Question by:DarcyAdams
  • 2

Expert Comment

ID: 13520641
Can you expand in this some?

Do you mean whenever you change any code in the code view, the design view will resort the tabs?

Does this happen when you re-order the tabs in design view, close it, and re-open it as well?
LVL 17

Accepted Solution

Jesse Houwing earned 2000 total points
ID: 13520710
This is a known problem with the .Net TabControl. It happens both in design and sometimes also when running.

The only known workaround is to remove all tabs and add them in the correct order in the load event or constructor of the form/control.

See also: http://reakcja.net/winforms/FAQ/WinForms/FAQ_c93c.html#q959q

Author Comment

ID: 13520715
I added a tab to the tabHandler and put it in the order that it needed to be in, the last position.  When I compiled it and deployed it all the tabs were re-ordered.  I went to look at the code itself and they were re-ordered to.  

Author Comment

ID: 13520727
Ahhh, so this will keep happening.  Thanks for the link.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

578 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