A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Recognize the type of the clicked folder in outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 1st 08, 03:20 PM posted to microsoft.public.outlook.program_addins
Hichem Sarrai[_2_]
external usenet poster
 
Posts: 7
Default Recognize the type of the clicked folder in outlook

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  
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...



  #3  
Old August 1st 08, 05:55 PM posted to microsoft.public.outlook.program_addins
Hichem Sarrai[_2_]
external usenet poster
 
Posts: 7
Default Recognize the type of the clicked folder in outlook

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  
Old August 1st 08, 10:40 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

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  
Old August 4th 08, 03:05 PM posted to microsoft.public.outlook.program_addins
Hichem Sarrai[_2_]
external usenet poster
 
Posts: 7
Default Recognize the type of the clicked folder in outlook

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.