|
-
Mar 13th, 2003, 02:43 AM
#1
Thread Starter
Member
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
-
Mar 13th, 2003, 03:22 AM
#2
Junior Member
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.
-
Mar 13th, 2003, 03:34 AM
#3
Thread Starter
Member
lol, what am i like, I think I need some sleep.
Thanks for the answer.
-
May 5th, 2004, 01:24 PM
#4
New Member
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
|