Hello,
I am using the following code in my form's FormRegionShowing to add a event handler to AfterWrite:
((Outlook.ItemEvents_10_Event)mailItem).AfterWrite += new Outlook.ItemEvents_10_AfterWriteEventHandler(CASLEmailFormRegion_AfterWrite);
It is working; however, the event is being triggered for all instances of the formRegion. How do I limit it to the form that its save button has been just clicked?
I am using the following code in my form's FormRegionShowing to add a event handler to AfterWrite:
((Outlook.ItemEvents_10_Event)mailItem).AfterWrite += new Outlook.ItemEvents_10_AfterWriteEventHandler(CASLEmailFormRegion_AfterWrite);
It is working; however, the event is being triggered for all instances of the formRegion. How do I limit it to the form that its save button has been just clicked?