The C1Tab Control > C1Tab Advanced Topics > Adding and Removing Tabs at Run Time |
Adding and removing tabs at runtime is easy.
To add a tab, start by using the AddTab method to add the tab, then use the AttachPageToTab method to attach a control to the new tab. The specified control will become a tab page and will be displayed whenever the new tab is selected by the user.
To remove a tab, start by using the RemoveTab method to remove the tab, then remove the corresponding page by setting its Visible property to False or by changing its Container property.
The SizerOne distribution disk includes samples (in VB and VC++) that show how to add and remove tabs at run time.