?
Solved

TabHandler keeps switching my tabs around

Posted on 2005-03-11
4
Medium Priority
?
198 Views
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?
0
Comment
Question by:DarcyAdams
[X]
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
4 Comments
 
LVL 4

Expert Comment

by:jaynus
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?
0
 
LVL 17

Accepted Solution

by:
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
0
 

Author Comment

by:DarcyAdams
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.  
0
 

Author Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

765 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