Programming Tab Controls

S

Sylvan Jonas

I have a Tab Control on a form with several tabs on them. On the main part
of the form I have a combo box. I would like to set it up so that when a
users chooses a particular item from the dropdown list, it automatically
brings the appropriate tab to the foreground. I have all my conditions set,
I just can't figure out the command(s) to change the active tab. I thought
the SetFocus method would work, but it doesn't seem to do anything. Any
help would be greatly appreciated.

Sylvan Jonas
 
A

Allen Browne

Set the Value of the tab control.

For example, if you wanted to make the page named "MyPage" active, and the
tab control is named "MyTab":
Me.MyTab.Value = Me.MyPage.PageIndex
 
S

Sylvan Jonas

Awesome! Thanks!!!

Sylvan Jonas
Allen Browne said:
Set the Value of the tab control.

For example, if you wanted to make the page named "MyPage" active, and the
tab control is named "MyTab":
Me.MyTab.Value = Me.MyPage.PageIndex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top