Search code examples
vb.netexcelwinapivstocustomtaskpane

Remove Excel taskpane close button using VB.NET VSTO


I believe the the title says it all. Does anybody know how to remove the close button of task-pane in Excel using VSTO (VB.NET)?


Solution

  • I think it should simply be like this:

    taskPane.CloseButton = false;
    

    (I tested this in my current Addin that uses some 3rd party software that uses TaskPane manager and it works there. This is why I am not completely sure if this will work for you, especially after reading this topic that concludes that there is not direct way to do it).