I use the code below to add a custom task pane. I need to erase the task pane so that I can add it at a later point. How do I delete a taskpane so that I can use the code below to add it again?
Private oTaskPane_Select As TaskPane_Select
Public WithEvents Select_CustomTaskPane As Microsoft.Office.Tools.CustomTaskPane
Private Sub ThisAddIn_Startup() Handles Me.Startup
oTaskPane_Select = New TaskPane_Select()
Select_CustomTaskPane = CustomTaskPanes.Add(oTaskPane_Select, "SELECT Elements")
Select_CustomTaskPane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionBottom