ExplorerFolderSwitch

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

ExplorerFolderSwitch
ExplorerFolderSwitch  
Karim




Posts: 170
Joined: 2006-01-02
Hello,
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?

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


Add-in Express team


Posts: 18823
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.


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