ItemAdd event fires more than once when adding a new appointment


Johan Machielse

Dear Reader,

I figured out that the ItemAdd event fires more than once when I add a new
appointment to the calendar in Outlook 2003! After a couple of ItemAdd events
one ItemChanged event is fired! It also seems that when there are more items
in the calendar, more ItemAdd events will be fired...

Does anyone know the cause of this strange behaviour and the solution?

Here's the code snippet which is executed in the OnStartupComplete() method
of my add-in:

Outlook.Application application =
Outlook.NameSpace mapiNamespace = application.GetNamespace("MAPI");
Outlook.MAPIFolder calendarFolder =

calendarFolder.Items.ItemAdd += new
calendarFolder.Items.ItemChange += new

Thank you in advance!

Johan Machielse

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question