Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I messed about changing the view of my TabControl so that the tabs appeared as buttons. On doing this TabPage 12 now appears next to Tabpage 1 then 2 follows.

 

This has not happened before no matter how many times I opened the form

 

I have read the section in the Windows Forms FAQ referred to by Divil which says to delete them then recreate them on form startup!

 

Anyone got a better idea??

My website
  • *Experts*
Posted

You can go to the InitializeComponent function and look for the line "TabControl.AddRange" where TabControl is the name of your tab control. You should see a comma-separated list of the TabPages, just move them around there.

 

You can also use the Designer. Get the TabControl in the properties window, then click on the ... button next to the TabPages property. In the dialog popup, you can use the up/down arrows to move TabPages around.

 

This happens from time to time. I can't reproduce it regularly, but I've seen it happen a few times.

 

-Ner

"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

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...