Is there a way to add a current tab to the tab control by name?
I currently have 7 tabs in my tab controls collection. I remove all the tabs from the collection at the start of the program and add in the ones I want based some criteria.
But I add them like so:
Tabs.TabPages.Add(this.tabSelect);
But I want to be able to add them by name (or some other way dynamically).
The tabSelect tab which is in the collection has a text name of "Select".
But if I do Tabs.TabPages.Add("Select"), it creates a new page, not use the one in the collection. Is there a way to do it programmatically?
Thanks,
Tom
I currently have 7 tabs in my tab controls collection. I remove all the tabs from the collection at the start of the program and add in the ones I want based some criteria.
But I add them like so:
Tabs.TabPages.Add(this.tabSelect);
But I want to be able to add them by name (or some other way dynamically).
The tabSelect tab which is in the collection has a text name of "Select".
But if I do Tabs.TabPages.Add("Select"), it creates a new page, not use the one in the collection. Is there a way to do it programmatically?
Thanks,
Tom