Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've created a outlook addin to send some changes to my team control module mssql server database whenever i change the status of an outlook task. but the problem is that the change event only fires 2 times. after that i need to close and open outlook again to remain working. I think the problem is that i've created my delegate event on addin startup event. Here is a sample of my codes:

C#
//Event declaration
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
   Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items.ItemChange += new Outlook.ItemsEvents_ItemChangeEventHandler(TaskEvent_PropertyChange);
   ...
}

//Event Code
void TaskEvent_PropertyChange(object ChangedObject)
{
    ....
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900