locked
Outlook Event (Flagicon changed) RRS feed

  • Question

  • Using VSTO I want to create a sub procedure when Flagicon of the email in the inbox has been changed 

    How to capture flagicon changed event, I mean what event will be fired when you change flagicon of your email

    Privage Sub 'NeedEventNamethatwillbefired

    End Sub

     

     

    Monday, May 8, 2006 4:21 PM

Answers

  • While Outlook does not fire a specific event for the flagicon change you can use the PropertyChange event on the MailItem object to grab the change. You can also use this event to grab changes on other properties as well.

     

    Private Sub myItem_PropertyChange(ByVal Property_Name As String)

                Select Case Property_Name

                Case "FlagIcon"

                            ‘Do processing

                Case Else

                End Select

    End Sub

     

    Hope this helps!

    Friday, May 12, 2006 4:55 PM