none
MailItem properties updates lagged in Active inspector

    Frage

  •  

    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 

    Donnerstag, 23. Februar 2012 08:04

Antworten

  • 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...

    Donnerstag, 23. Februar 2012 14:32