I'm writing an add-in for Outlook 2010 (C#) that acts when messages are dragged to a PST file. I'm using
    olExplorer.BeforeItemCopy += new Outlook.ExplorerEvents_10_BeforeItemCopyEventHandler(olExplorer_BeforeItemCopy);
    olExplorer.BeforeItemCut += new Outlook.ExplorerEvents_10_BeforeItemCutEventHandler(olExplorer_BeforeItemCut);
    olExplorer.BeforeItemPaste += new Outlook.ExplorerEvents_10_BeforeItemPa开发者_如何学运维steEventHandler(olExplorer_BeforeItemPaste);
to capture the events, but have noticed that I can circumvent these functions when I use the "Copy To" or "Move To" options.
How do I go about capturing the other two events?
UPDATE:
I've managed to capture "Move To", but "Copy To" is baffling me
Your code is correct. The BeforeItemCopy event fires before an item is copied to the Clipboard, for example: when you press [Ctrl + C] or from context menu.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论