Dim CurrentTabPage As Control
CurrentTabPage = DirectCast("tcontrol.SelectedTab.Name",
Control)
MessageBox.Show(CurrentTabPage.Name)
I get a SPECIFIED CAT IS NOT VALID
Simply described:
I want to determine the name of the tabpage that I am on
(it is created dynamically) and then be able to reference
the tabpages properties. That is why I am trying to
convert it to a control.
I think I am missing something simple.
TIA
Paul A. Timmerman