property Tab.Active as Long
Specifies the active tab number.

TypeDescription
Long A long expression that indicates the position of the focused ( activated ) page. 

The Active property specifies the position of the page being activated. If you didn't use the Position property to change the position of the pages, the index and positions are identical so position can be used when accessing a page using the Item property. If you are using Position property to change the position of the pages, the properties like: IndexToPos and PosToIndex should be used before passing the argument to the Item property. The Activate event is fired when a new page is focused ( activated ).

The following sample displays the caption of focused page no matter if the Position property was used:

    Tab1.Pages(Tab1.Pages.PosToIndex(Tab1.Active)).Caption