Mike,
What james is saying is that in order to achieve what you want you need
to do two things.
First, as Carlos pointed out, the TabControl object has two properties,
SelectedIndex, which returns the tab's index (in order 0, 1, 2, ...
from first to last), and SelectedTab, which returns the selected
TabPage itself as an object.
However, that's not enough to do what you want. You want to react to a
_change_ in the currently selected tab page, so just knowing the
current page is insufficient. So, you need events. The event
SelectedIndexChanged of the TabControl will be raised whenever the
selected tab page changes.
So, you need to hook up an event handler to SelectedIndexChanged:
myTabControl.SelectedIndexChanged += new
EventHandler(myTabContol_SelectedIndexChanged);
then, inside your myTabContol_SelectedIndexChanged method, you can
check SelectedIndex or SelectedTab to see what is the new tab page that
the user just selected.