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

Only registered users are allowed to subscribe.

Posts: 153
Joined: 2006-01-02
In outlook, I would like that in the event ExplorerFolderSwitch the code can be used only when I select mailboxes and not elsewhere. how to do ? how to determine that the box is a box mail and nothing else? do you have an example?

Posted 14 Sep, 2017 03:32:27 Top
Andrei Smolin

Add-in Express team

Posts: 14137
Joined: 2006-05-11
Hello Karim,

This event only occurs when Outlook navigates to a folder. There's no event that occurs when you select a folder. The only scenario, in which you deal with a selected folder, is this: you right-click a folder and, in the OnPropertyChanging event of a Ribbon control located on the corresponding context menu, you retrieve the context, in which the control is about to show. In this scenario, the context is an Outlook.MAPIFolder object representing the folder right-clicked; you analyze it and modify the control before being displayed (or prevent it from showing). Not sure if this scenario applies to your case.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Sep, 2017 06:58:20 Top