View Single Post
  #2  
Old August 1st 08, 05:35 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Recognize the type of the clicked folder in outlook

Use MAPIFolder.DefaultItemType property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Hichem Sarrai" wrote in message
...
Hi,
In my code for the outlook addin I am trying to enable/disable
commandbarbuttons from the tool bar depending on the folder I am clicking
on.
When I open some "folders" (such as "MailBox MyName") the explorer is
temporarly closed so I can't check the explorer.Selection wich throws an
exception.
How can I recognize the type of folder so that I adapt my add-in
appearance.(I am using the event SwitchFolder)

Thank you for your help...



Ads