开发者

Capturing the "Copy To" event in Outlook 2010

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜