Advanced Excel task Pane hide on load

Add-in Express™ Support Service
That's what is more important than anything else

Advanced Excel task Pane hide on load
How to hide task pane on start up and only show when a ribbon button is pressed 
pwl




Posts: 4
Joined: 2016-04-26
I tried to use the below code but i get a null pointer exception. I am not sure i properly understand at what point the task pane is instantiated so in addition to solving this, please direct me to a source that would explain the sequence of events related to the task pane and its controls.

Private Sub AddinModule_AddinStartupComplete(sender As Object, e As EventArgs) Handles MyBase.AddinStartupComplete

AdxExcelTaskPanesCollectionItemMyTaskPane.TaskPaneInstance.Hide()

End Sub

thanks
Posted 11 May, 2016 23:35:49 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Pwl,

You can find more information in the
https://www.add-in-express.com/docs/net-outlook-regions-panes-ui.php chapter. I would suggest that you handle the ADXBeforeTaskPaneShow event and set this.Visible property to true of false depending on your conditions.
Posted 12 May, 2016 04:55:53 Top