Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Event Capture - Item Context Menu (Delete). Can you hook it? (http://www.outlookbanter.com/add-ins-outlook/88090-event-capture-item-context-menu.html)

pkelley March 23rd 09 10:36 PM

Event Capture - Item Context Menu (Delete). Can you hook it?
 
Say you have Outlook 2007 running.
You click "Calendar" on the Navagation pane and you see in the Reading pane
1 month worth of appointments.
Now lets say you "Right-Click" on an Appointment Item in the Reading pane.
In the ItemContextMenuDisplay you select the command "Delete" to delete the
appointment.

Is there a way for my Add-In to hook that event?

Thanks.

Ken Slovak - [MVP - Outlook] March 24th 09 01:45 PM

Event Capture - Item Context Menu (Delete). Can you hook it?
 
You can subscribe to the new Folder.BeforeItemMove() event for that Folder
object. If the MoveTo Folder argument passed to you is null the item is
going to be deleted.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"pkelley" wrote in message
...
Say you have Outlook 2007 running.
You click "Calendar" on the Navagation pane and you see in the Reading
pane
1 month worth of appointments.
Now lets say you "Right-Click" on an Appointment Item in the Reading pane.
In the ItemContextMenuDisplay you select the command "Delete" to delete
the
appointment.

Is there a way for my Add-In to hook that event?

Thanks.




All times are GMT +1. The time now is 12:31 PM.

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