Find out which page is selected on a Tab Control ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to find out from VB which page is currently selected on a Tab
Control. I need to requery lists, etc. on each tab control page when a
different item is selected on the main form that contains the tab control. I
want to therefore detect which page on the tab control is ccurently selected
then just requery what I need on the selected page.

Can anyone help ?
 
Beertrix said:
I'm trying to find out from VB which page is currently selected on a Tab
Control. I need to requery lists, etc. on each tab control page when a
different item is selected on the main form that contains the tab control. I
want to therefore detect which page on the tab control is ccurently selected
then just requery what I need on the selected page.

Can anyone help ?

Me!TabControlName.Value

Will be equal to the index of the currently selected TabPage. By default zero
would be the first page, 1 the second, etc..
 
Back
Top