David Wisniewski
Posts: 39
Joined: 2015-11-20
|
When I change the selected item, the ExplorerSelectionChange event is firing twice, and both times it is connecting to the same new mailitem that I have selected. Is this intentional? I don't want to execute my code twice each time a new item in the explorer is selected. |
|
Andrei Smolin
Add-in Express team
Posts: 18819
Joined: 2006-05-11
|
Hello David,
This is the way Outlook works. Click the selected message and you'll get one more SelectionChange. To not handle the same email twice, retrieve MailItem.EntryId and compare it with the previously processed one.
Regards from Poland (CET),
Andrei Smolin
Add-in Express Team Leader |
|