PC Review


Reply
Thread Tools Rate Thread

Recognize the type of the clicked folder in outlook

 
 
Hichem Sarrai
Guest
Posts: n/a
 
      1st Aug 2008
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...
 
Reply With Quote
 
 
 
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      1st Aug 2008
Use MAPIFolder.DefaultItemType property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Hichem Sarrai" <(E-Mail Removed)> wrote in message
news:49564E99-054C-46F7-B97A-(E-Mail Removed)...
> 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...



 
Reply With Quote
 
Hichem Sarrai
Guest
Posts: n/a
 
      1st Aug 2008
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" <(E-Mail Removed)> wrote in message
> news:49564E99-054C-46F7-B97A-(E-Mail Removed)...
> > 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...

>
>
>

 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      1st Aug 2008
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" <(E-Mail Removed)> wrote in message
news:2892D1BE-0A82-4B88-AE64-(E-Mail Removed)...
>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" <(E-Mail Removed)> wrote in message
>> news:49564E99-054C-46F7-B97A-(E-Mail Removed)...
>> > 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...

>>
>>
>>



 
Reply With Quote
 
Hichem Sarrai
Guest
Posts: n/a
 
      4th Aug 2008
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" <(E-Mail Removed)> wrote in message
> news:2892D1BE-0A82-4B88-AE64-(E-Mail Removed)...
> >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" <(E-Mail Removed)> wrote in message
> >> news:49564E99-054C-46F7-B97A-(E-Mail Removed)...
> >> > 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...
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: recognize text when i type Golfinray Microsoft Access Forms 0 14th Apr 2008 02:38 PM
Get Outlook calendar to popup when double clicked in folder view =?Utf-8?B?TGxveWQgbGVpZGVybWFu?= Microsoft Outlook Calendar 1 9th Aug 2006 03:04 AM
Outlook 2000 doesn't recognize public folder contacts KK Microsoft Outlook Contacts 0 5th May 2005 09:37 PM
When I type a email sometimes its in bold and I have not clicked . =?Utf-8?B?b2xkeQ==?= Microsoft Word Document Management 1 25th Jan 2005 06:39 AM
VBA Iterate through Outlook Folder Type Mismatch Outlook 2003 Rog Microsoft Outlook VBA Programming 3 24th Dec 2003 03:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:58 PM.