index > Visual Studio Tools for Office > to retrieve event if mail item is moved VSTO oulook

to retrieve event if mail item is moved VSTO oulook


Hallo,

i would like to know if it is posseble to to retrive a event if a mailitem is moved to a other folder.

Gloat




Gloat
Gloat

Hello Gloat,

as I know you can only register for the Folders.Items.Add event of the destination folder.
You have to hack around this.

Remember the ID of the mail and when you get the item add event of the folder, check the id of the newly added item.

Hope this helps,

greets, Helmut




Helmut Obertanner [MVP - Visual Developer VSTO]
Helmut Obertanner

Helmut is correct (and a great Outlook dev resource!)

The only thing I would add is that using this event is good; just keep in mind that it will also fire if an item is copied into the folder. You will have to add additional code to detect whether this is an item being moved or if it is being copied.

John




http://blogs.msdn.com/johnrdurant
John R. Durant - MSFT
reply 3

You can use google to search for other answers

 

More Articles

Delete a range in VSO
Outlook winforms email template?
Cannot use ListView in outlook 2007 form region
Formatting / AutoFit
How to check the Message if it has been forwarded,replied or not?...
Finding the current Table
How to get/calculate the character width in MS Word?
Access to Exchange Account Information over VSTO-Outlook Addin
sending to excell with VB
Outlook PropertyPages - Where to store settings?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

FaceId's
Visual Studio 2005 Tools for Office Hand…
Multithreading in VBA for Excel
Accessing Action Pane in Word Automation
"Unable to install or run..."
Excel IF Function
Access Add-In from the OUTSIDE...
Find and replace for Strings over 255 ch…
Any reason for difference in speed?
Deploying research services problem
How to add caspol security settings for …
How to use DataConnections in Infopath 2…
Obtaining a selected range from a Word d…
Upgrade a Combobox with queries list in …
Cannot create project

Hot Articles

Add-in for MS Outlook. Problrm with Prop…
How to determine the type of the Outlook…
Shimming in VS 2005 Tools for Office
Force Focus on Excel? How to?
How to display progress on Excel Status …
VSTO Installation
multiple windows again and again
Microsoft Office 2003 Save My Settings W…
VSTO and Microsoft Office
Visual Studio Tools for Office. Problem …
Creating new templates
VB.NET - Excel Object Library
Cypress and task panes accross multiple …
Outlook MessageBox hidden when using Wor…
SelectionChange only fires once

Recommend Articles

Word Macro for changing document comment…
performances problem
Excel ExportXml from background thread
How to remove Outlook add-in
Issues with VSTO 2005
Exchange Access - Save Error
Publishing Excel doc on shared drive
Can destroy active inspector ?
Send Email using VS2005
Outlook 2003 TaskPane ???
Save worddocument
Adding sperators between toolbar buttons
Event for text change
Need to get to Excel.Application referen…
Problema with Application.OnKey