473,405 Members | 2,444 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,405 software developers and data experts.

TabPage out of order

I have a TabControl in my app, with 11 tabs. Several times, the tabs get
magically reordered for me. Sometimes, it shows up in the designer as a new
order, so I simply open the collection and put the tab pages back into the
order I want. Why does that happen? Then, as another issue, they don't
match my order when I run the application. They look one way in the
designer, and a different way when it runs. How does that happen?

I have not edited the "Windows Form Designer generated code" portion of the
code myself, so I don't know how it was altered. At times, I can play with
the control, maybe add a tab then kill it, or move things around, save it
all, then it will work. Lately, that trick does not work, so the tabs are
out of order.

Ideas?
Aug 16 '06 #1
2 1504
Hi,

"Kenny ODell" <Ke********@discussions.microsoft.comwrote in message
news:CB**********************************@microsof t.com...
>I have a TabControl in my app, with 11 tabs. Several times, the tabs get
magically reordered for me. Sometimes, it shows up in the designer as a
new
order, so I simply open the collection and put the tab pages back into the
order I want. Why does that happen?
I have seen this happening in VS 2003 , no idea way though. It seems that is
a bug with the designer
>Then, as another issue, they don't
match my order when I run the application. They look one way in the
designer, and a different way when it runs. How does that happen?
This I have never seen, but maybe it's the same than the above, just that
you never change back to design view, in any way it's an apparent bug in the
designer.


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Aug 16 '06 #2

Kenny ODell wrote:
I have a TabControl in my app, with 11 tabs. Several times, the tabs get
magically reordered for me. Sometimes, it shows up in the designer as a new
order, so I simply open the collection and put the tab pages back into the
order I want. Why does that happen? Then, as another issue, they don't
match my order when I run the application. They look one way in the
designer, and a different way when it runs. How does that happen?

I have not edited the "Windows Form Designer generated code" portion of the
code myself, so I don't know how it was altered. At times, I can play with
the control, maybe add a tab then kill it, or move things around, save it
all, then it will work. Lately, that trick does not work, so the tabs are
out of order.
This is a known bug in VS2003. I can't find anything on MSDN at the
moment... maybe another poster can locate the bug report.

I add code in my constructor (after the call to InitializeComponents())
to remove all tab pages from the TabControl and add them back in the
correct order. I've heard that there are ways to fiddle in the Designer
to always leave the TabPages in the correct state so that they'll be
serialized correctly into code, but they sound too delicate to me: I
prefer brute force.

Aug 16 '06 #3

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

Similar topics

4
by: TMB333 | last post by:
I've researched as much as I can on the issue, but I've not found any clearly defined statement that acknowledges that the Hide method for a TabPage object just doesn't do what it's supposed to do....
9
by: Robb Gilmore | last post by:
Hello, This is probably an easy one, but I have not been able to figure it out so far. I have a tab control on a windows forms app. Depending on some business logic, I need to hide/show some...
2
by: Likhith Areekkal | last post by:
Hello, Here is my problem: I did a layout of the tab pages as follows (in the given order): 'Login' 'Log Calls' 'Priority' 'Action' 'View' (total 5 tab pages) Now, the problem...
2
by: Fei Li | last post by:
tabpage hide() and show() do not work tabpage properties Enabled and Visible are able to be set but not work and not documented. Why?
2
by: Sumit | last post by:
Hi All, I am working on an application in which i have 4 tabpages say A, B, C & D. Now in one scenario i want that user is able to click on tabs A & B but the tabs C & D remain disabled for...
9
by: sdbranum | last post by:
Tab pages, which I have added to forms in design view, are occassionally reordered without warning. Other than hard-coding the tab order by clearing then readding these same tab pages outside...
8
by: touf | last post by:
Hi, I've a tabcontrol that contains many similar tabpages (exactly the same structure with different information), the tabpages number isn't known in the design time it depends of the data. Is...
6
by: ray well | last post by:
i want a user to be able to change tab pages thru the keyboard, i tried entering the TabPage.text as '&1 Names', "&2 Addresses', etc., so that the user can change pages by type ALT 1, ALT 2, on the...
6
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello gurus, I want to have a Form with a TabControl, this TabControl will contain TabPage that has controls in it, this TabPage is prepared at design time. I want in runtime to duplicate the...
2
by: bhaughey | last post by:
Hi All, How do you set the order of TabPages in a TabControl? I set them in the properties of the control "TabPage Collection Editor", but when it comes to run time the order changes again! ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.