Question

I am programming an Outlook addin. It's working fine, but now I want to add an event handler when a user makes a new task.

For new contacts I am using this code and it's working.

cnt.ItemAdd += new Microsoft.Office.Interop.Outlook.ItemsEvents_ItemAddEventHandler(this.cnt_ItemAdd);

But for a new task this event is not firing.

Thanks

Was it helpful?

Solution

You said that

But for a new task this event is not firing

. Are you binding the task event to cnt? Maybe you should add the event to the task variable ( instead of contacts variable)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top