tabstrip question (VB6)

How do I programicaly select one of the tabs on a tabstrip?
On a sstab I use sstab1.Tab = 2, but I can not find i way to do it
on a tabstrip.
Anybody?
trondsorensenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
Use this syntax:

TabStrip1.Tabs(2).Selected = True
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tirupur_selvaCommented:
You need to have two public variables in that form, such as CurrentTab, PrevTab. In the Tabstrip's click event, have code something like this:
In this, you can keep a separate frame for each tabpage. When a tabpage is selected make the specific frame visible and all others invisible.

CurrentTab = Tabstrip1.SelectedItem.Index - 1

If CurrentTab <> PreviousTab then
...   'Do some process like making the frame visible & other frames invisible
...
PreviousTab = CurrentTab
Endif

Hope this would be useful
Regs
Selva
0
trondsorensenAuthor Commented:
I thought it was that easy, just couldnt figure it out :-)
Thanks.
0
trondsorensenAuthor Commented:
I am sorry tirupur_selva, but this is not what I was asking. Maybe it is my english wich is not as good as I like to think ;-)
I wanted to select a tab progamicaly, like if I press command1, tab1 gets selected. But thanks for your effort.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.