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 |
|
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! |
|
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?xicoJose Castellanos |
|
Dmitry Kostochko
Add-in Express team
Posts: 2875
Joined: 2004-04-05
|
Hi Jose,
Thank you for letting us know. |
|