Struggling with Events RRS feed

  • Question

  • Newbie here and I'm struggling with events and need to implement the ItemChange event in my Outlook add-in application.  I've written the stub application below and have tried several permutations with the goal of after a Contact is changed/saved the ConItems_ItemChange sub would be called.  Below is the stub program; what am I doing wrong.

    Thanks in advance.


    Public Class ThisAddIn

    Public WithEvents ConItems As Outlook.Items

    Private olFolder As Outlook.Folder

    Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup

    olFolder = Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)

    ConItems = olFolder.Items

    End Sub

    Private Sub ConItems_ItemChange(ByVal item As Object)


    End Sub

    End Class

    Tuesday, March 10, 2009 7:36 PM