Programming Tab Controls

  • Thread starter Thread starter Sylvan Jonas
  • Start date Start date
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
 
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
 
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
 
Back
Top