Results 1 to 4 of 4

Thread: TabControl

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    53

    TabControl

    Hi,
    I've got a tabcontrol on a form with a few tabs at the top, how can I, through code, select the first tab.

    When a button is pressed I just want the tabcontrol to go back to the first tab.

    Thanks

  2. #2
    Junior Member
    Join Date
    Mar 2003
    Posts
    16
    each tab on your tabcontrol has number starting with 0 for first tab.

    to goto first tab you can do this:


    TabControl1.SelectedIndex = 0


    write this in button event. if you want to select any other tab give number of that tab.
    vijay pahuja
    mumbai

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    53
    lol, what am i like, I think I need some sleep.

    Thanks for the answer.

  4. #4
    New Member
    Join Date
    May 2004
    Location
    somewhere between the world of programming, game programming and web programming or just simply programming O and the warhammer 40k world
    Posts
    1

    Talking Thanks for a simple reminder

    Regarding the TabControlObjectName.Tabindex = # thanks for the simple reminder on how to do this, I was going through the ".Tabpages" property using all sorts of crazy methods (i.e. '.Show', '.Select', '.Focus') *sighs* none worked but just for FYI purpose's thanks again


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