MailItem properties updates lagged in Active inspector
-
Thursday, February 23, 2012 8:04 AM
Hi,
I have problem regarding instant update of Acitve inspector mailItem properties the code is below,
step to produce
1. open a new email window to compose new email now change the subject of new email
2. now click on ribbon button (created by ribbon xml designer in vsto project) which opens a new window forms( model form in vsto project).
3. In this window load event I have written following code but the subject is not update instantly.
Dim mailItem = CType(Globals.ThisAddIn.Application.ActiveInspector().CurrentItem, Outlook.MailItem)
dim subject = mailItem.subject
If the same process is called by waiting while after changing the subject, there is no missmatch
please suggest me how to get the instant update of mailItem property
All Replies
-
Thursday, February 23, 2012 2:32 PMModerator
If you want to trap when the value of any Outlook property changes, monitor the MailItem.PropertyChange event. The "Name" argument will tell you the property that changed, as that event can fire many times in succession.
Eric Legault
MVP (Outlook)
About me...- Marked As Answer by Tom_Xu_WXModerator Wednesday, March 07, 2012 6:36 AM

