How to set the position of custom pane?

Aug 29, 2013 at 8:48 PM
Hi,

I was wondering if anyone knows how I can set the position of a pane?

pane.DockPosition = DnaUI.MsoCTPDockPosition.msoCTPDockPositionFloating;
    pane.Height = 500;
    pane.Width = 500;
thanks
Coordinator
Aug 30, 2013 at 5:19 PM
Hi,

Google ("Move Custom Task Pane") found some posts that indicate you should try to find the CommandBar object that wraps the CTP, and try to move that. Something like:
if (app.CommandBars["My Task Pane"].Position == Microsoft.Office.Core.MsoBarPosition.msoBarFloating)
{
    app.CommandBars["My Task Pane"].Top = 0;
    app.CommandBars["My Task Pane"].Left = 0;
}
I haven't tried it, though.

-Govert