Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • *Experts*
Posted

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

"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
Posted

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.

My website

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...