|
-
Mar 9th, 2004, 05:24 PM
#1
Thread Starter
Addicted Member
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.
-
Mar 9th, 2004, 05:46 PM
#2
Addicted Member
try
TabControl1.SelectedIndex=1
or
TabControl1.SelectedTab = TabPage2
-
Mar 9th, 2004, 06:27 PM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|