Question

I'm writing an outlook add-in for 2007+ which listens to the property change event and displays a list of recipients to the user.

My issue is in 2007 the property change event does not fire when a recipient is removed from the message causing a conflict between what the add-in displays and and what the user has in the TO/CC and BCC fields.

Note: You can force the property change event to fire by saving the message however this is not a elegant solution moving forward.

Question: Is there a solution to this bug in Outlook?

Was it helpful?

Solution

After a long time working on this issue I was unable to find a work around.

The PropertyChange event is used as a mechanism within Outlook to update the internal recipients collection and because this does not fire when a recipient is removed there was no way to preserve a consistent user experience and retrieve the updated list of recipients using the Outlook object model.

This is purely a bug in Outlook 2007 and does not affect versions 2010 and 2013.

Additional notes: Saving the message will cause the PropertyChangeEvent to fire and update the recipients.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top