Thank you for your help in advance and I'm sorry if this is obvious but I am horribly new to vb.net.
I want to remove all the tabs in a tab control, then be able to re-add them out of order, remove them as needed and navigate between them.
I tried using
Private Enum SelectedTabType
Name
RAddress
PAddress
PhoneDetails
OtherDetails
Disabilities
Admin
End Enum
and i named the tabs
tabName
tabRAddress
tabPAddress
tabPhoneDetails
tabOtherDetails
tabDisabilities
tabAdmin
and that works fine for navigation using (tab control name ).SelectedIndex = SelectedTabType.Admin
if i keep them in order but seems to go crazy if i remove and re-add tabs, i assume the order no longer corresponds to the enum i set up there, so that adding a tab named"tabPhoneDetails", removing it, and adding "tabDisabilities" means "tabDisabilities" is now sitting at the index "tabPhoneDetails" was ???
Should i be keeping an independent dictionary or something to track the (tab name), (tab index ) or can i extract that from a tab control?
I have tried navigating by the tab name itself but can't get that working.
I would have thought (tab control name).SelectedTab = tabRAddress would work?
Can anyone point me in the right direction? I don't know how to use debug to display the index each tab has.
Would it help if i mock up what i mean and attach it or just copy and paste the code?
I want to remove all the tabs in a tab control, then be able to re-add them out of order, remove them as needed and navigate between them.
I tried using
Private Enum SelectedTabType
Name
RAddress
PAddress
PhoneDetails
OtherDetails
Disabilities
Admin
End Enum
and i named the tabs
tabName
tabRAddress
tabPAddress
tabPhoneDetails
tabOtherDetails
tabDisabilities
tabAdmin
and that works fine for navigation using (tab control name ).SelectedIndex = SelectedTabType.Admin
if i keep them in order but seems to go crazy if i remove and re-add tabs, i assume the order no longer corresponds to the enum i set up there, so that adding a tab named"tabPhoneDetails", removing it, and adding "tabDisabilities" means "tabDisabilities" is now sitting at the index "tabPhoneDetails" was ???
Should i be keeping an independent dictionary or something to track the (tab name), (tab index ) or can i extract that from a tab control?
I have tried navigating by the tab name itself but can't get that working.
I would have thought (tab control name).SelectedTab = tabRAddress would work?
Can anyone point me in the right direction? I don't know how to use debug to display the index each tab has.
Would it help if i mock up what i mean and attach it or just copy and paste the code?