Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   BeforeItemMove firing twice (http://www.outlookbanter.com/add-ins-outlook/73811-beforeitemmove-firing-twice.html)

Manish June 18th 08 09:59 PM

BeforeItemMove firing twice
 
Im registering for MAPIFolderEvents_12_BeforeItemMoveEventHandler events on
Calendar Folder. When an appointment is deleted, or shift-deleted, my
handler does get called.

However, if I shift-delete an appointment (ie MoveTo folder in the callback
is null), and I cancel the event .. ie
public void CbkBefMov(object Item, Outlook.MAPIFolder MoveTo, ref bool
Cancel)
{
if (MoveTo == null) { Cancel = true; }
}
then the callback gets invoked a second time. This is bizzare. Any ideas
why?

Thanks
Manish Rao




All times are GMT +1. The time now is 06:24 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com