Current page selected

  • Thread starter Thread starter Akilah
  • Start date Start date
A

Akilah

Is there a way to determine which page on a tab is current (selected) or in
use. Thanks is advance.
 
Thanks. Now that tells the page that is currently selected. Is there a way
to tell what page it is changing to on the tab.change. For instance, if I go
from page1 to page3, the current page is page1; how can I get the value of
page 3.
 
if you check for the value of the tabcontrol in the controls Change event, it
will give you the new page #, not the one you moved from.

--
HTH
Dale

email address is invalid
Please reply to newsgroup only.
 
Not that I'm aware of, but you could create a public variable that is visible
to the entire form. In the declarations portion of the code, enter:

Dim intPrevPage as integer

This variables initial value will be set to zero, since it is numeric.
Whenever I use a tab control, I generally use the Forms Current event to
reset the focus of the tab control to the first tab. I would reset
intPrevPage to zero at that time as well.

Then, at the end of the code in the Change Event of the tab control, set
that value to the current value. Then, you can refer to that value anywhere
in your code for that form.

--
HTH
Dale

email address is invalid
Please reply to newsgroup only.
 
I'll try that, thanks.

Dale Fye said:
Not that I'm aware of, but you could create a public variable that is visible
to the entire form. In the declarations portion of the code, enter:

Dim intPrevPage as integer

This variables initial value will be set to zero, since it is numeric.
Whenever I use a tab control, I generally use the Forms Current event to
reset the focus of the tab control to the first tab. I would reset
intPrevPage to zero at that time as well.

Then, at the end of the code in the Change Event of the tab control, set
that value to the current value. Then, you can refer to that value anywhere
in your code for that form.

--
HTH
Dale

email address is invalid
Please reply to newsgroup only.
 
Back
Top