473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mysterious moving tabs

KC
Has anyone else had the problem of tabs in a tab control changing position
on their own? Sometimes I run my app (in debug mode) and some of the tabs
are in completely different positions. I can shift them back in the tab
control no problem, but it ain't suppose to be doing that in the first
place.

---
Ken
Nov 20 '05 #1
3 1018
Hi KC,

Very known bug it has to do with the Z order. I said to somebody try it with
setting the pages in a loop to BringToFront, I am curious if that works,
because I never tried that.

Maybe you can try?

Cor

....
Has anyone else had the problem of tabs in a tab control changing position
on their own? Sometimes I run my app (in debug mode) and some of the tabs
are in completely different positions. I can shift them back in the tab
control no problem, but it ain't suppose to be doing that in the first
place.

---
Ken

Nov 20 '05 #2
This is a known bug.

You can easily fix that once for all with simple code. You can use the
following code to completely remove TabPages from the TabControl in re-add
them in the correct order. It is important to notice that the content of
TabPages will not be affected.
With TabControl1.TabPages
.Clear()
.Add(TabPage1)
.Add(TabPage2)
.Add(TabPage3)
.Add(TabPage4)
.Add(TabPage5)
End With
This code needs to be placed anywhere after the call to InitializeComponent.
The Form's Load event is a good place for that.
--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"KC" <yo*@dontneed.this> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
Has anyone else had the problem of tabs in a tab control changing position
on their own? Sometimes I run my app (in debug mode) and some of the tabs
are in completely different positions. I can shift them back in the tab
control no problem, but it ain't suppose to be doing that in the first
place.

---
Ken

Nov 20 '05 #3
It's a well known problem. This question is asked so often that I included
it on my site.
http://dotnetrix.co.uk/tabcontrols.html --> Tabpage order has changed

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"KC" <yo*@dontneed.this> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
Has anyone else had the problem of tabs in a tab control changing position
on their own? Sometimes I run my app (in debug mode) and some of the tabs
are in completely different positions. I can shift them back in the tab
control no problem, but it ain't suppose to be doing that in the first
place.

---
Ken

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jim Geissman | last post by:
I have function that returns a table of information about properties. The data comes from three different tables -- addresses (called PropertyID), property characteristics, and events concerning...
12
by: swingingming | last post by:
Hi, in the NorthWind sample database, when clicking on the next navigation button on the new order record with nothing on the subform (order details), we got an order with nothing ordered. How can...
0
by: Mark Nijhof | last post by:
Hello, I made a small app that has those nice moving panels like Visual Studio has. Now all goes fine until I open one of them that has a lot of child controls in it. Actually it has one...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
0
by: malachi.constant | last post by:
I have some navigation tabs which aren't displaying correctly in IE. They are within a div which has border-bottom set, but as you can see from the following screenshot, they don't display...
6
by: Stephen Edwards | last post by:
I am a novice, so bear with me. I designed a website using CSS TABS, all was fine, then I copy and pasted meta name, etc for keywords, tweaking it where necessary for keywords. I did not notice...
35
by: Ben | last post by:
Hi, I have a python script on a unix system that runs fine. I have a python script on a windows system that runs fine. Both use tabs to indent sections of the code. I now want to run them on the...
5
iBasho
by: iBasho | last post by:
I have developed a form with 5 tabs (2 of which have subforms). Currently, the users get to each tab by clicking on the tab at the top when they are finished entering data on that page. (it does...
7
by: Phil Reynolds | last post by:
I'm using a tab control in Access 2000, and the user requested to have buttons in the form header, instead of the built-in tabs (so that when they scroll down, they can still switch tabs). Now,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.