How to sort VB .NET Tab Pages?

Posted on 2005-05-05
Last Modified: 2008-02-01
Dear expert,

I sort TabPages in Tab Control at design time but they do not appear in the same way at run time. What should I do.

Tnaks, Svemir.
Question by:svemir
    LVL 4

    Expert Comment

    I have seen this before in my own apps

    Go into the Code for the form and look in the "Windows Form Designer generated code" region
    and locates the codes that adds the tab pages to the tab ctrl
    ensure that the indexes for the tab pages reflect the designers index.

    If they do not adjust accordingly

    If they do (and this is strange but it seems to work) make sure the that the tab pages are added to the
    Tab Control in the order of index.

    Author Comment

    Could you please explain this little bit more because first I already check!

    "If they do (and this is strange but it seems to work) make sure the that the tab pages are "added" to the
    Tab Control in the order of index."
    LVL 4

    Accepted Solution


    Something like...


    Author Comment

    I fix it by changing order in which controlos are added.

    Thanks you gdexter!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now