Results 1 to 3 of 3

Thread: Showing a new tab?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210

    Showing a new tab?

    i have 2 tabs, and on the first tab (tab1)i have a button and i want it to get the other tab in focus.
    so i tried many things, such as

    Tab2.Show(),
    Tab2.Focus(),
    Tab1.Hide() : Tab2.Show(),
    Tab2.Show() : Tab2.Focus(),

    but none of them worked.
    well, hiding the first tab then showing the second worked but the tab position stayed the same. for example, when the user clicks on the tab, it makes it look like the tab is "focused" but when i hide the first tab and show the second, the focus is still on the first tab.

    any help? thanks.

  2. #2
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    try

    TabControl1.SelectedIndex=1

    or

    TabControl1.SelectedTab = TabPage2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210
    bleh it works. thanks!
    i always miss those things. i should've known to try the tab control.


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