Find out which page is selected on a Tab Control ?

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 ?
 
R

Rick Brandt

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..
 

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