CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    130

    [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!!

  2. #2
    Join Date
    Apr 2007
    Location
    Florida
    Posts
    403

    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.

  3. #3
    Join Date
    Jan 2010
    Posts
    130

    Re: Rearrange position of tab controls

    Im trying to modify the order in which TabItems appear in a TabControl...

  4. #4
    Join Date
    Apr 2007
    Location
    Florida
    Posts
    403

    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.

  5. #5
    Join Date
    Jan 2010
    Posts
    130

    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
  •  





Click Here to Expand Forum to Full Width

Featured