Q
QB
How can I get the name of the active page from my tab control (TabDepts)?
Thank you,
QB
Thank you,
QB
myTab.Value gives you the 0-based index.
myTab.Pages(myTab.Value).Name gives you the name of that tab.
Now I prefer to use the Caption property. It is easier than using
the Name property since it is readily visible in the form design
view while coding.
I've tried it all three ways (index, Name, and Caption) and
personally find referring to the caption easier.