-
March 9th, 2010, 09:34 AM
#1
[RESOLVED] Rearrange position of tab controls
I have created a set of tabs on a Window.Form but would now like to change the order of these tabs. Namely I would like my last tab to be set as the second tab (with all the other tabs moving one along accordingly). I read you can use change the position of controls using TabIndex but that doesnt seem to work for layered controls like mine.... What do I do?
Thank you!!
-
March 9th, 2010, 10:53 AM
#2
Re: Rearrange position of tab controls
TabIndex is the order in which a control will be tabbed to (tab in the sense of hitting the tab key on your keyboard). Is this what you want? Or are you trying to modify the order in which TabItems appear in a TabControl.
-
March 9th, 2010, 11:00 AM
#3
Re: Rearrange position of tab controls
Im trying to modify the order in which TabItems appear in a TabControl...
-
March 9th, 2010, 11:10 AM
#4
Re: Rearrange position of tab controls
You could modify the TabPages collection which is a member of your TabControl instance.
Just like any other array, you can modify the index of its children.
-
March 9th, 2010, 11:22 AM
#5
Re: Rearrange position of tab controls
Thank you it worked!!! So much easier than deleting everything and starting all over again!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|