Tab page question

  • Thread starter Thread starter Darin
  • Start date Start date
D

Darin

I have a tabcontrol with 2 pages on it. On the first page, I have some
labels. I want it when the label is clicked, to load some data on the
second tab and have that tab be the one with focus. The first part is
fine (the data on the second tab is loaded based off the label clicked
on the first page), but I cannot get the second tab page to come to the
front. I have tried:

tbWeek.focus
tbWeek.select
tbweek.show
tbweek.bringtofront

None seem to work. Any suggesstions?

Darin
 
Darin said:
I have a tabcontrol with 2 pages on it. On the first page, I have
some labels. I want it when the label is clicked, to load some data
on the second tab and have that tab be the one with focus. The first
part is fine (the data on the second tab is loaded based off the
label clicked on the first page), but I cannot get the second tab
page to come to the front. I have tried:

tbWeek.focus
tbWeek.select
tbweek.show
tbweek.bringtofront

None seem to work. Any suggesstions?

tabcontrol1.selectedtab = tbWeek
 
* Darin said:
I have a tabcontrol with 2 pages on it. On the first page, I have some
labels. I want it when the label is clicked, to load some data on the
second tab and have that tab be the one with focus. The first part is
fine (the data on the second tab is loaded based off the label clicked
on the first page), but I cannot get the second tab page to come to the
front. I have tried:

\\\
Me.TabControl1.SelectedTab = Me.TabPage1
///

- or -

\\\
Me.TabControl1.SelectedIndex = 1
///
 
Thank you Armin. I was focused on the tab page itself and not on the
entire control.

Darin
 
Back
Top