Delete Disabled Outlook Manager Folder

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

Delete Disabled Outlook Manager Folder
 
Rup Go




Posts: 64
Joined: 2007-03-01
Hi

Here is my code, it simply creates and assigns 1 of my form to CMS folder under mails. My problem is, i want to make it permanent wherein user can't delete the folder much like the INBOX folder, when u right click on it the delete option is disable. How can i implement it? thanks in advance.

Outlook.MAPIFolder rootFolder = null;
Outlook.MAPIFolder adxFolder = null;

try
{
rootFolder = Utils.OutlookManager.GetRootFolder(OutlookApp);
if (rootFolder != null)
{
adxFolder = Utils.OutlookManager.CreateFolder("CMS", rootFolder, Outlook.OlDefaultFolders.olFolderInbox);
adxFolder.UserPermissions
if (adxFolder != null)
{
adxOlFormsManager1.Items[0].FolderName = rootFolder.Name + '\\' + adxFolder.Name;
}
}
}
finally
{
if (rootFolder != null)
{
Marshal.ReleaseComObject(rootFolder);
}
if (adxFolder != null)
{
Marshal.ReleaseComObject(adxFolder);
}
}
Posted 30 Mar, 2007 00:38:45 Top
Rup Go




Posts: 64
Joined: 2007-03-01
Hi any guys out there knows how to implement a delete disabled folder? much like the Inbox folder thanks
Posted 25 Apr, 2007 04:45:08 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Rup.

I am afraid it is not possible. Outlook doesn't provide such feature.


P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 25 Apr, 2007 10:16:24 Top
Rup Go




Posts: 64
Joined: 2007-03-01
Hi Sergey,

but if we can add/insert an item in the context menu, disabling the DELETE folder or removing it from the context menu can most probably be done right?

thanks,
Rup
Posted 25 Apr, 2007 21:55:41 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Rup,
unfortunately Outlook doesn't allow us to modify built-in controls within the context menu.
Posted 26 Apr, 2007 09:43:24 Top
Rup Go




Posts: 64
Joined: 2007-03-01
oh ok, no problem thanks a lot
Posted 27 Apr, 2007 01:42:45 Top