G
Guest
Hello All,
I’m having a issue with the TabControl.SelectedTab.Name in the
SelectedIndexChanged method. All I want to do is keep track of what tab the
control is currently on. I have tried the following. I get an Index error or
Object is not an instance of a Object error. Is there a work around?
Thank you in advance.
Terry
gstrPrevTab = gstrCurrentTab
gstrCurrentTab = MyTabControl.SelectedTab.Name
And
Select Case MyTabControl.SelectedTab.Name
Case pgMyPage.Name
//do something here and move on
Case pgMyPage2.Name
//Same as above.
I’m having a issue with the TabControl.SelectedTab.Name in the
SelectedIndexChanged method. All I want to do is keep track of what tab the
control is currently on. I have tried the following. I get an Index error or
Object is not an instance of a Object error. Is there a work around?
Thank you in advance.
Terry
gstrPrevTab = gstrCurrentTab
gstrCurrentTab = MyTabControl.SelectedTab.Name
And
Select Case MyTabControl.SelectedTab.Name
Case pgMyPage.Name
//do something here and move on
Case pgMyPage2.Name
//Same as above.