So this is a design/structural question regarding two TabControls.
My windows form has an outer main TabControl whose TabPages will hold individual backup job information. So, for example, I may have three main tabpages:
[Backup Job 1] [Backup Job 2] [Backup Job 3]
When I click on [Backup Job 2] another TabControl and it's associated TabPages will display:
[Backup Job 1] [Backup Job 2] [Backup Job 3]
[What To Backup] [Where To Backup] [Compression] [Encryption]
The complexity here with the TabControls, is that the inner TabControl for the backup jobs may have no backup jobs, one or more, each with their own inner TabControl and associated TabPages.
So I thought I would create the outer TabControl and one inner (backup job) TabControl with it's associated TabPages and make it invisible, only to be used as a template. Such that when I clicked on the menu item create new backup job, my code could use this 'hidden' backup job TabPage and make it visible and load it's data accordingly.
But I found out you can't hide a TabPage (seems odd that you can't do that) so that idea went out the window. Am I left with creating new backup jobs by instantiating each one as needed and then setting up the display of the backup job inner TabControl, all by code?
Or is there another way that I am not aware of?
Thanks for your thoughts...