![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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... |
#3
|
|||
|
|||
![]()
I hope you understood my question.
All the folders I am talking about have the the same MAPIFolder.DefaultItemType wich is olMailItem! = How can I differentiate folders that holds items and open them in an explorer, and folders that do not show items(do not have item) and are considered as colsed explorer such as the root folder "Mailbox toto" ?? Thank you "Dmitry Streblechenko" wrote: 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... |
#4
|
|||
|
|||
![]()
The root IPM folder (the parent of Inbox and most other special folders),
can have items just fine, it is just Outlook shows an HTML page instead of an explorer list view. Check if the MAPIFolder.WebViewOn is true. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Hichem Sarrai" wrote in message ... I hope you understood my question. All the folders I am talking about have the the same MAPIFolder.DefaultItemType wich is olMailItem! = How can I differentiate folders that holds items and open them in an explorer, and folders that do not show items(do not have item) and are considered as colsed explorer such as the root folder "Mailbox toto" ?? Thank you "Dmitry Streblechenko" wrote: 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... |
#5
|
|||
|
|||
![]()
Yes. This is it.
Thank you for your help... "Dmitry Streblechenko" wrote: The root IPM folder (the parent of Inbox and most other special folders), can have items just fine, it is just Outlook shows an HTML page instead of an explorer list view. Check if the MAPIFolder.WebViewOn is true. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Hichem Sarrai" wrote in message ... I hope you understood my question. All the folders I am talking about have the the same MAPIFolder.DefaultItemType wich is olMailItem! = How can I differentiate folders that holds items and open them in an explorer, and folders that do not show items(do not have item) and are considered as colsed explorer such as the root folder "Mailbox toto" ?? Thank you "Dmitry Streblechenko" wrote: 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... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Type Mismatch when iterating through eMail-folder MailItems in Outlook 2003 | [email protected] | Outlook and VBA | 3 | October 5th 07 02:45 PM |
Message deselected when "Move to Folder" is clicked | V_Jamie | Outlook - General Queries | 2 | February 23rd 07 01:48 PM |
Get Outlook calendar to popup when double clicked in folder view | Lloyd leiderman | Outlook - Calandaring | 1 | August 9th 06 02:04 AM |
outlook will not recognize my "contacts address folder" | dacdouglas | Outlook - Using Contacts | 1 | July 19th 06 10:08 PM |
Problem Getting OE to Recognize Location of Store Folder | Bruce Kerievsky | Outlook Express | 5 | February 12th 06 12:39 AM |