views:

308

answers:

2

I have a custom task pane I've made in VSTO for Outlook 2007, but it needs a fair amount of screen real estate to be functional. I'd like to just take over the place of the Reading Pane, as it won't really be needed when this addon is active. It's also a really great spot since this addon relies on drag-and-drop from mail folders to this task pane, and the closer I can get it to the folder pane, the better.

Any way to replace the Reading Pane, or at least toggle it's visibility?

+1  A: 

I dont think there is a way in OOM to do this .. I you can change the size of you region though.

I have seen it done though with add-in-express tool http://www.add-in-express.com but that may be 2 much work for you to change to that model.

76mel
Tell a lie I found this method on the explorer object ShowPane()http://msdn.microsoft.com/en-us/library/aa210298(office.11).aspx
76mel
Ah that really helps. So just for reference if needed one can minimize the preview pane by doing:Application.ActiveExplorer().ShowPane(Microsoft.Office.Interop.Outlook.OlPane.olPreview, false);And to bring it back:Application.ActiveExplorer().ShowPane(Microsoft.Office.Interop.Outlook.OlPane.olPreview, true);
matthews
Yep, not sure thats what you wanted though ?
76mel
A: 

I tried using that code to hide the FolderList pane:

Application.ActiveExplorer().ShowPane(Microsoft.Office.Interop.Outlook.OlPane.olFolderList, false);

But I notice that the leftmost pane (which shows folders) gets hidden. I thought that was the Navigation pane!

How do I hide the FolderList pane? I am using Outlook 2007.

Robin