ItemEvents_10_AfterWriteEventHandler is triggers for all instances of the form region

Status
Not open for further replies.

Allan Xu

New Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server 2007
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?
 
Status
Not open for further replies.

Similar threads

Back
Top