David..... Getting closer. This works upto a point. Where it fails is where I have multi-tab configuration. What I have is two rows of tabs. I have say three tabs on the top row. Under this I have say 2 tabs assocaited with each Tab on the top row. So I need to beable to select a top tab then when I select a bottom assocaited tab, be able to detect that I selected the associated tab.
Top Row Tab1, Tab2, Tab3, Tab 4
Bottom Row
Tab5, Tab6 - associated with Tab1
Tab7, Tab8 - associated with Tab2
Tab9, Tab10 - assocaited with Tab3
I was able to change the format to:
PrivateSub Tab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControl2.SelectedIndexChanged
If TabControl2.SelectedIndex = 0 Then
'set variables for Tab 1
MantisseTab = 1
Me.TextBox4.Text = "TabPage5"
Me.TextBox34.Text = "MantisseTab1"
EndIf
If TabControl2.SelectedIndex = 1 Then
'set variables for Tab 1
MantisseTab = 2
Me.TextBox4.Text = "TabPage6"
Me.TextBox34.Text = "MantisseTab2"
EndIf
EndSub
Guess what I am asking is I need to be able to detect that I selected Tab 5,6 under Tab1, Tab 7,8 under Tab2 and Tab 9,10 under Tab3.