473,416 Members | 1,520 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,416 software developers and data experts.

InitializeComponent changes TabPage order without warning

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 InitializeComponent, is there
another way to prevent such reodering?

Steve
Nov 17 '05 #1
9 1935
This sounds like the designer "issue" (bug). I think that you're going to
have to reorder them yourself after the InitializeComponent method call, as
you have indicated.
http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q

If you search the google archives you may find more information on this.
But, AFAIK, there is no fix yet that works with VS.Net 2003.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
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 InitializeComponent, is there
another way to prevent such reodering?

Steve

Nov 17 '05 #2
This sounds like the designer "issue" (bug). I think that you're going to
have to reorder them yourself after the InitializeComponent method call, as
you have indicated.
http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q

If you search the google archives you may find more information on this.
But, AFAIK, there is no fix yet that works with VS.Net 2003.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
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 InitializeComponent, is there
another way to prevent such reodering?

Steve

Nov 17 '05 #3
Tim,

Thank you. I checked the link, and that is indeed what I am experiencing.
Hopefully, MS will fix this someday, since I have a lot of forms with tab
pages, as well as tab pages within tabs, and the code to undo, then redo what
the designer is supposed to do once is less than elegant. If you happen to
know of a link where MS has acknowledged the issue, I would appreciate the
same, since I would then be able to track progress of a resolution.

Regards,
Steve

"Tim Wilson" wrote:
This sounds like the designer "issue" (bug). I think that you're going to
have to reorder them yourself after the InitializeComponent method call, as
you have indicated.
http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q

If you search the google archives you may find more information on this.
But, AFAIK, there is no fix yet that works with VS.Net 2003.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
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 InitializeComponent, is there
another way to prevent such reodering?

Steve


Nov 17 '05 #4
Tim,

Thank you. I checked the link, and that is indeed what I am experiencing.
Hopefully, MS will fix this someday, since I have a lot of forms with tab
pages, as well as tab pages within tabs, and the code to undo, then redo what
the designer is supposed to do once is less than elegant. If you happen to
know of a link where MS has acknowledged the issue, I would appreciate the
same, since I would then be able to track progress of a resolution.

Regards,
Steve

"Tim Wilson" wrote:
This sounds like the designer "issue" (bug). I think that you're going to
have to reorder them yourself after the InitializeComponent method call, as
you have indicated.
http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q

If you search the google archives you may find more information on this.
But, AFAIK, there is no fix yet that works with VS.Net 2003.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
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 InitializeComponent, is there
another way to prevent such reodering?

Steve


Nov 17 '05 #5
I thought there was a KB article on this but I did a quick search and turned
up nothing. I, too, am hoping that this issue is resolved with a future
service pack so that devs that continue to use VS.Net 2003 do not continue
to experience this problem. I have heard that this issue is resolved with VS
2005.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Tim,

Thank you. I checked the link, and that is indeed what I am experiencing.
Hopefully, MS will fix this someday, since I have a lot of forms with tab
pages, as well as tab pages within tabs, and the code to undo, then redo what the designer is supposed to do once is less than elegant. If you happen to
know of a link where MS has acknowledged the issue, I would appreciate the
same, since I would then be able to track progress of a resolution.

Regards,
Steve

"Tim Wilson" wrote:
This sounds like the designer "issue" (bug). I think that you're going to have to reorder them yourself after the InitializeComponent method call, as you have indicated.
http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q

If you search the google archives you may find more information on this.
But, AFAIK, there is no fix yet that works with VS.Net 2003.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
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 InitializeComponent, is there another way to prevent such reodering?

Steve


Nov 17 '05 #6
I thought there was a KB article on this but I did a quick search and turned
up nothing. I, too, am hoping that this issue is resolved with a future
service pack so that devs that continue to use VS.Net 2003 do not continue
to experience this problem. I have heard that this issue is resolved with VS
2005.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Tim,

Thank you. I checked the link, and that is indeed what I am experiencing.
Hopefully, MS will fix this someday, since I have a lot of forms with tab
pages, as well as tab pages within tabs, and the code to undo, then redo what the designer is supposed to do once is less than elegant. If you happen to
know of a link where MS has acknowledged the issue, I would appreciate the
same, since I would then be able to track progress of a resolution.

Regards,
Steve

"Tim Wilson" wrote:
This sounds like the designer "issue" (bug). I think that you're going to have to reorder them yourself after the InitializeComponent method call, as you have indicated.
http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q

If you search the google archives you may find more information on this.
But, AFAIK, there is no fix yet that works with VS.Net 2003.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
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 InitializeComponent, is there another way to prevent such reodering?

Steve


Nov 17 '05 #7
I found this bug report and response to it by a person on the VS2005 product
team. From the response, I gather they have not fixed the bug, nor do they
intend to do so in the future, since they do not admit it IS a bug.

http://lab.msdn.microsoft.com/produc...3-f04bbc592c60

The text of their reply is as follows:
<quote>
Resolved as Not Reproduced by Microsoft on 2005-05-20 at 03:08:05

Thanks for reporting this issue, for some reason I am not able to reproduce
the problem with the steps provided. If you have any additional information
and/or project files that could help me repro it would be much appreciated.

Thank you,
Vivek, VS2005 Product Team
<end quote>

Notice the key word "Resolved". If it had not been for that one word, I
would have some hope.

I'll just continue to work around the problem by clearing then re-adding the
individual tab pages at run time. It isn't elegant, but when tools do not
support elegant programming, what can one do?

Steve

"Tim Wilson" wrote:
I thought there was a KB article on this but I did a quick search and turned
up nothing. I, too, am hoping that this issue is resolved with a future
service pack so that devs that continue to use VS.Net 2003 do not continue
to experience this problem. I have heard that this issue is resolved with VS
2005.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Tim,

Thank you. I checked the link, and that is indeed what I am experiencing.
Hopefully, MS will fix this someday, since I have a lot of forms with tab
pages, as well as tab pages within tabs, and the code to undo, then redo

what
the designer is supposed to do once is less than elegant. If you happen to
know of a link where MS has acknowledged the issue, I would appreciate the
same, since I would then be able to track progress of a resolution.

Regards,
Steve

"Tim Wilson" wrote:
This sounds like the designer "issue" (bug). I think that you're going to have to reorder them yourself after the InitializeComponent method call, as you have indicated.
http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q

If you search the google archives you may find more information on this.
But, AFAIK, there is no fix yet that works with VS.Net 2003.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
> 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 InitializeComponent, is there > another way to prevent such reodering?
>
> Steve


Nov 17 '05 #8
Huh. I was under the impression that it was fixed for 2005. It doesn't
surprise me that whoever replied to that message could not repro the bug as
it appears to happen at random. I've seen this issue, as well as many
others, but I've never seen a reliable repro for it. I guess the only thing
to do now is to hope that the bug report information is wrong and that this
is fixed for 2005 RTM.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
I found this bug report and response to it by a person on the VS2005 product team. From the response, I gather they have not fixed the bug, nor do they
intend to do so in the future, since they do not admit it IS a bug.

http://lab.msdn.microsoft.com/produc...3-f04bbc592c60
The text of their reply is as follows:
<quote>
Resolved as Not Reproduced by Microsoft on 2005-05-20 at 03:08:05

Thanks for reporting this issue, for some reason I am not able to reproduce the problem with the steps provided. If you have any additional information and/or project files that could help me repro it would be much appreciated.
Thank you,
Vivek, VS2005 Product Team
<end quote>

Notice the key word "Resolved". If it had not been for that one word, I
would have some hope.

I'll just continue to work around the problem by clearing then re-adding the individual tab pages at run time. It isn't elegant, but when tools do not
support elegant programming, what can one do?

Steve

"Tim Wilson" wrote:
I thought there was a KB article on this but I did a quick search and turned up nothing. I, too, am hoping that this issue is resolved with a future
service pack so that devs that continue to use VS.Net 2003 do not continue to experience this problem. I have heard that this issue is resolved with VS 2005.

--
Tim Wilson
..Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Tim,

Thank you. I checked the link, and that is indeed what I am experiencing. Hopefully, MS will fix this someday, since I have a lot of forms with tab pages, as well as tab pages within tabs, and the code to undo, then redo
what
the designer is supposed to do once is less than elegant. If you
happen to know of a link where MS has acknowledged the issue, I would appreciate the same, since I would then be able to track progress of a resolution.

Regards,
Steve

"Tim Wilson" wrote:

> This sounds like the designer "issue" (bug). I think that you're going to
> have to reorder them yourself after the InitializeComponent method
call, as
> you have indicated.
> http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q
>
> If you search the google archives you may find more information on

this. > But, AFAIK, there is no fix yet that works with VS.Net 2003.
>
> --
> Tim Wilson
> ..Net Compact Framework MVP
>
> "sdbranum" <sd******@discussions.microsoft.com> wrote in message
> news:CF**********************************@microsof t.com...
> > 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 InitializeComponent, is

there
> > another way to prevent such reodering?
> >
> > Steve
>
>
>


Nov 17 '05 #9
Whilst I am not sure exactly how this happens during the normal design time
process, I am able to reproduce the undesired behaviour by taking steps that
I would not normally take.

Start a new project.
Add a tab Control with 5 tabpages.
Select tabpage 5 and BringToFront.
Select tabpage 3 and BringToFront.
Build.

Close and reopen the form editor.

The tabpages should now be displayed in the order 3,5,1,2,4

Reorder the tabpages in the collection editor using the arrow buttons.
Tabpages 4 and 5 will always be the wrong way round after a rebuild, but
will appear to be correct whilst the form designer is not closed and
reopened.

By selecting the tabpages in the form designer and reordering them via
BringToFront, the correct order can be reset.
This method of reordering is outlined on my TabControls page:
http://dotnetrix.co.uk/tabcontrols.html

It's pretty simple to emulate the error, but I have no Idea why it happens
during the normal course of Design.
I may be totally off, but I suspect that there may be some unnecessary
zOrdering whilst maintaining the hidden Dock property of the tabpage. The
reason that I suspect this, is that I often change zOrder of Fill Docked
panels to get them Docked correctly , but of course, since only one tabpage
can be Visible at any one time, it is not necessary to change the zOrder and
so this may not be the case at all.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Huh. I was under the impression that it was fixed for 2005. It doesn't
surprise me that whoever replied to that message could not repro the bug
as
it appears to happen at random. I've seen this issue, as well as many
others, but I've never seen a reliable repro for it. I guess the only
thing
to do now is to hope that the bug report information is wrong and that
this
is fixed for 2005 RTM.

--
Tim Wilson
.Net Compact Framework MVP

"sdbranum" <sd******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
I found this bug report and response to it by a person on the VS2005

product
team. From the response, I gather they have not fixed the bug, nor do
they
intend to do so in the future, since they do not admit it IS a bug.

http://lab.msdn.microsoft.com/produc...3-f04bbc592c60

The text of their reply is as follows:
<quote>
Resolved as Not Reproduced by Microsoft on 2005-05-20 at 03:08:05

Thanks for reporting this issue, for some reason I am not able to

reproduce
the problem with the steps provided. If you have any additional

information
and/or project files that could help me repro it would be much

appreciated.

Thank you,
Vivek, VS2005 Product Team
<end quote>

Notice the key word "Resolved". If it had not been for that one word, I
would have some hope.

I'll just continue to work around the problem by clearing then re-adding

the
individual tab pages at run time. It isn't elegant, but when tools do not
support elegant programming, what can one do?

Steve

"Tim Wilson" wrote:
> I thought there was a KB article on this but I did a quick search and turned > up nothing. I, too, am hoping that this issue is resolved with a future
> service pack so that devs that continue to use VS.Net 2003 do not continue > to experience this problem. I have heard that this issue is resolved with VS > 2005.
>
> --
> Tim Wilson
> ..Net Compact Framework MVP
>
> "sdbranum" <sd******@discussions.microsoft.com> wrote in message
> news:30**********************************@microsof t.com...
> > Tim,
> >
> > Thank you. I checked the link, and that is indeed what I am experiencing. > > Hopefully, MS will fix this someday, since I have a lot of forms with tab > > pages, as well as tab pages within tabs, and the code to undo, then redo > what
> > the designer is supposed to do once is less than elegant. If you happen to > > know of a link where MS has acknowledged the issue, I would
> > appreciate the > > same, since I would then be able to track progress of a resolution.
> >
> > Regards,
> > Steve
> >
> > "Tim Wilson" wrote:
> >
> > > This sounds like the designer "issue" (bug). I think that you're going > to
> > > have to reorder them yourself after the InitializeComponent method call, > as
> > > you have indicated.
> > > http://www.syncfusion.com/FAQ/Window...93c.aspx#q959q
> > >
> > > If you search the google archives you may find more information on this. > > > But, AFAIK, there is no fix yet that works with VS.Net 2003.
> > >
> > > --
> > > Tim Wilson
> > > ..Net Compact Framework MVP
> > >
> > > "sdbranum" <sd******@discussions.microsoft.com> wrote in message
> > > news:CF**********************************@microsof t.com...
> > > > 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 InitializeComponent,
> > > > is
> there
> > > > another way to prevent such reodering?
> > > >
> > > > Steve
> > >
> > >
> > >
>
>
>


Nov 17 '05 #10

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

Similar topics

7
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc....
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...
8
by: edster | last post by:
A *lot* of our teams code is being deleted from the InitializeComponent() section of a winform, such as Grid settings, event handler hooks, layout settings etc. This mainly seems to happen to 3rd...
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...
6
by: Sleepy | last post by:
Visual Studio 2003 Windows Forms application: Is there a way that I can add a form as a TabPage? My goal is to develop a series of forms and load the dialogs dynamically in a tab control based...
3
by: David Cho | last post by:
I've noticed that my code in InitializeComponent where I am linking event handlers to events vanishes from time to time. One of the things that triggers the disappearance is when I do something...
8
by: Andre Nogueira | last post by:
Hi there. I would like to know it is possible in VB.Net 2003 to see that a user has clicked a tab page. My goal is to close the tab page if the user clicks a tabpage "separator" (not sure how to...
4
by: Supra | last post by:
I have a tab control in a which a few of the tabs include an AxWebBrowser browser control. Let say i have currently tabpage2 and i typed url in combobox when i pressed enter it doesn't display...
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
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.