Fixed font Subject: 2007 Addin - new folders
Author: Luka Gospodnetic Date: 17 Sep 2010
References:
Hi,

I managed to add new folders using the following code:

------------
solutionRoot =
rootStoreFolder.Folders.Add("Solution Demo",
Outlook.OlDefaultFolders.olFolderInbox)
as Outlook.Folder;

Outlook.SolutionsModule solutionsModule =
activeExplorer.NavigationPane.Modules.GetNavigationModule(Outlook.OlNavigationModuleType.olModuleSolutions)
as Outlook.SolutionsModule;

solutionsModule.AddSolution(solutionRoot,
Outlook.OlSolutionScope.olHideInDefaultModules);
------------

Now my new folder shows up, but the problem is that when I have to add a
folder I have to define the type. Currently I could only find enumeration
Outlook.OlDefaultFolder. But this is not good for me because i want to
show my custom task panes when the user click on the folder, and not the
default funcionalities like Inbox, Notes, Tasksa etc.

Thank you in advance,
Kind regards,
Luka

______________________________________
Posted from http://outlook-center.com
Outlook forums, articles, tips.