### Hide / Unhide TabPane

Example to hide / unhide a TabPage of a TabPane.
The ID of a TabPage is used for the Tabs methods RemoveAt and InsertAt.
Define the TabPane and the TabPages
`Sub Process_Globals
Private TabPane_Tools As TabPane
Private TabPage_Tools_Preview As TabPage
Private TabPage_Tools_Search As TabPage
End Sub`
Load the TabPane and TabPages Layout and assign to a TabPage
MainForm.RootPane.LoadLayout("PaneTools")
' TabPane tools add TabPages - the id is used to hide / unhide a tabpage (preview)
TabPage_Tools_Preview = TabPane_Tools.LoadLayout("PaneToolsPreview", "Preview")
TabPage_Tools_Preview.Id = 0
TabPage_Tools_Search = TabPane_Tools.LoadLayout("PaneToolsSearch", "Search")
TabPage_Tools_Search.Id = 1
Hide the TabPage Preview - remove the tab with index 0
TabPane_Tools.Tabs.RemoveAt(TabPage_Tools_Preview.Id)
Unhide the TabPage Preview - insert the tab at index 0
TabPane_Tools.Tabs.InsertAt(TabPage_Tools_Preview.Id, TabPage_Tools_Preview)

Changed: , Category: TabPage and TabPane, File: T6C260M1913.htm, ID: 1913