Tear advanced task pane to a floating window?

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

Tear advanced task pane to a floating window?
 
Maurice Calvert




Posts: 95
Joined: 2008-09-12
Would it be possible to tear an advanced task pane off the Excel window, onto a separate, floating window?
For example, keep the Excel sheet on monitor-1 and have the task pane on monitor 2?
Posted 26 Jan, 2017 05:18:18 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Maurice,

This isn't possible to do with an Advanced Task Pane. You can only do this with a Custom Task Pane.


Andrei Smolin
Add-in Express Team Leader
Posted 26 Jan, 2017 05:56:56 Top
Maurice Calvert




Posts: 95
Joined: 2008-09-12
Hi Andrei,
many thanks for the prompt response, as usual!

I created a standard task pane and I can tear it, perfect.

How do I get the instance of the usercontrol created on the task pane from the ADXTaskPane object?

Regards from Switzerland
:)
Posted 26 Jan, 2017 08:45:50 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Maurice,

Below is a code fragment from https://www.add-in-express.com/docs/net-office-custom-task-panes.php.

   Private Sub RefreshTaskPaneInstance(ByVal TaskPaneInstance As _ 
      ADXTaskPane.ADXCustomTaskPaneInstance) 
      If Not TaskPaneInstance Is Nothing Then 
         Dim uc As UserControl1 = TaskPaneInstance.Control 
         If uc IsNot Nothing And TaskPaneInstance.Window IsNot Nothing Then 
            uc.InfoString = GetInfoString(TaskPaneInstance.Window) 
         End If 
      End If 
   End Sub 



Andrei Smolin
Add-in Express Team Leader
Posted 26 Jan, 2017 09:30:18 Top
Maurice Calvert




Posts: 95
Joined: 2008-09-12
Hi Andrei,

I missed that article.
All works beautifully now.

Thanks and regards,
Mauice
Posted 26 Jan, 2017 10:31:50 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Great!


Andrei Smolin
Add-in Express Team Leader
Posted 27 Jan, 2017 00:44:19 Top