Sometimes I have tab controls where most of the pages are fine, but one has too many controls to fit easily. I paste pictures of birds from several sites, and want certain identifying information. Photographer, date, location, species, common name, etc. One tab of my options tab control might be "Warn if...", and all the warning checkboxes don't fit. Checkboxes labeled "Warn if photographer name missing", "Warn if date missing", ... Easily sub-tabbed on another tab control. Here's how:
- Private Sub tabMain_Change()
-
If tabMain.Pages(tabMain.Value).Name = "Page3" Then
-
tabSub.Visible = True
-
Else
-
tabSub.Visible = False
-
End If
-
End Sub
For this example, I have TabControl = tabMain and 3 tabs, Page1, Page2, & Page3. I create another TabControl = tabSub. Yes, it appears to be on all pages of TabMain, because it isn't a part of tabMain at all. It is a control on my form, but it "Shows through" tabMain, and appears to be a control on a page (or all pages now). By making it Visible only when the proper tab page is active, it acts as if it is a sub-tab control.
You have already done the form design. Change my tab control name to yours, and it should work.