### Remove selected TabPage

To remove the selected Tab from the TabPane:
Via B4J code
`Sub Process_Globals
..
Private tpMain As TabPane
End Sub`
'Remove the selected tab = tabpage.
'Important to cross check the selected index.
`Sub btnTabRemove_Action
Dim idx As Int = tpMain.SelectedIndex
If idx < 0 Then Return
tpMain.Tabs.RemoveAt(idx)
End Sub`

Changed: , Category: TabPage and TabPane, File: T6C260M1914.htm, ID: 1914