TAB PAGES!!!! VS keeps rearranging them!
aah I'm getting crazy!!!! I have 7 tabpages in my tab control. I want to have them in a certain order. No mather what order I choose, VS changes the order at a random time, and to a random order!
For example I rearrange the tabs, but when I run the program all of the tabpages are in another random order. Sometimes this happens when I switch from code view to design view:mad:
this is the code that VS makes, I edited it manually and put it in the order that I want, but it still keeps changing this line:mad::mad:
VB Code:
Me.tabWizard.Controls.AddRange(New System.Windows.Forms.Control() {Me.tabpSelectPics, _
Me.tabpFormatImages, Me.tabpThumbnails, _
Me.tabpChooseFolders, Me.tabpPages, Me.tabpHtmlTemplate, _
Me.tabpImages})
any ideas?!!!!:confused:
Re: TAB PAGES!!!! VS keeps rearranging them!
I've struggled with the same problem for about a year, and it has steadily gotten worse even though my tab control only has six pages.
I gave up the ghost and now solve the issue at runtime. In my form load, I remove all the pages from TabPages in a For/Step/Next loop, and then I add them back in the desired order.
Since doing that, I have not experienced a reordering problem at runtime. The only downside to this workaround, beyond the 0.0001 seconds of extra runtime this takes on startup, is that while you are working in Visual Studio, the pages are in whatever random order that VB puts them in. That takes a little getting used to, but I don't even really notice it anymore.
Re: TAB PAGES!!!! VS keeps rearranging them!
Wow, this thread is over 2 years old. I was wondering why I had a new reply in it. Heh.
Re: TAB PAGES!!!! VS keeps rearranging them!
Eh...I remember researching this a year ago and finding this thread. I figured that since 99% of the time I'm posting questions, I figured it would be a good idea to go back and post an answer for a change.
Re: TAB PAGES!!!! VS keeps rearranging them!
are you using VS2005? wondering if this is fixed in the new VS
Re: TAB PAGES!!!! VS keeps rearranging them!
Don't know...haven't gone to 2005 yet. Sorry.
Check with me again, oh...in about two years. :sick:
Re: TAB PAGES!!!! VS keeps rearranging them!
i had the same problem in 2003 however i have a couple of tabcontrols in the new IDE and i haven't had the problem since