doraemon Posted October 29, 2003 Posted October 29, 2003 I am using VB .Net 2003 and the tabpage control has some funny behavior. I have 4 tabs. For a few times, the tabs were re-ordered by themselves (e.g. tab 2 was swapped with tab 3 or tab 3 swapped with tab 4) in design mode. I don't know why it would happen. Actually, at runtime, I programatically removed the last 3 tabs, then added them back one at a time when the previous tab is done. But that should not have affected the design time. I noticed that this automatic rearrangement usually happens after I rebuild the solution or ran the program, but it did not happen all the time. Anyone has a clue? Quote
*Experts* Nerseus Posted October 30, 2003 *Experts* Posted October 30, 2003 I've had this happen a few times (definitely not every time). I think it was a confirmed bug by MS but I don't recall seeing a work-around. It doesn't happen very often to me and I can't say I've seen it happen since moving to .NET 2003 though and like you say, if you reorder the tabs with runtime code, you avoid the problem altogether. If it's really bothering you, try searching support.microsoft.com to see if they have any info. -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
hog Posted October 30, 2003 Posted October 30, 2003 It is a confirmed bug, was present in VS 2002 and also now in VS2003. The workaround is to modify the tabcontrols add range line of code in the Windows Designer code. This has been mentioned before somewhere on this site, I know this as it was me:) Can't find the post to detail the exact code line, but if you scroll down you should find it easy enough. Justy looking at VS 2003 though the range line is not there? Try ordereing the code which adds each tabpage to how you want them. Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.