Switching ADXPPT Taskpanes

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

Switching ADXPPT Taskpanes
Code in .net for switching between tabs. 
Jose Castellanos




Posts: 30
Joined: 2015-08-25
Hello, I love ADX, so useful!

Question, I have two advanced custom task panes on docked on the right side of my PowerPoint app...
I can easily swith between the two of them with the handy drop-down menu on the top.

I would also like to have a button in Taskpane 1 to take to Taskpane 2. Is this possible?

Im working with .net..

Thanks in advance!
Jose Castellanos
Posted 25 Aug, 2015 17:40:28 Top
Dmitry Kostochko


Add-in Express team


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

I would also like to have a button in Taskpane 1 to take to Taskpane 2. Is this possible?


Sure, it is possible, please see the code below:


// show pane #2
private void buttonShowPane2_Click(object sender, EventArgs e)
{
    ADXPowerPointTaskPane2 pane2 = this.PowerPointTaskPanesManager.Items[1].TaskPaneInstance as ADXPowerPointTaskPane2;
    if (pane2 != null)
    {
        pane2.Show();
        pane2.Activate();
    }
}



// show pane #1
private void buttonShowPane1_Click(object sender, EventArgs e)
{
    ADXPowerPointTaskPane1 pane1 = this.PowerPointTaskPanesManager.Items[0].TaskPaneInstance as ADXPowerPointTaskPane1;
    if (pane1 != null)
    {
        pane1.Show();
        pane1.Activate();
    }
}


P.S. Thank you for your kind words!
Posted 26 Aug, 2015 07:21:42 Top
Jose Castellanos




Posts: 30
Joined: 2015-08-25

Sure, it is possible, please see the code below:


Thank you! Although I did not use your code, it gave me the perfect hints. All worked out!


   Dim po As ADXPowerPointTaskPanesCollectionItem

        po = PowerPointTaskPanesManager.Items.Item(0)

        po.TaskPaneInstance.Show()
        po.TaskPaneInstance.Activate()


Greetings from M?xico
Jose Castellanos
Posted 26 Aug, 2015 12:14:36 Top
Dmitry Kostochko


Add-in Express team


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

Thank you for letting us know.
Posted 27 Aug, 2015 06:06:43 Top