A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MailItem.Move



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 29th 09, 12:40 PM posted to microsoft.public.outlook.program_addins
j
external usenet poster
 
Posts: 109
Default MailItem.Move


Hey All,

I'm developing shared AddIn for Outlook 2003, C# 2.0.

The scenario:

i subscribed to Item Add event for 'My Folder'.
i open Otulook (AddIn is loaded) and psysically move item from 'Inbox'
folder to 'My Folder'.

in the code: i catched the 'Item add' event, and want to know from
wchich fodler item was dragged/moved.

I wonder if there any solution for that???, cause mailItem 'Parent'
property pointed me to current folder the item present.



Thanks for advance.

Ads
  #2  
Old March 30th 09, 03:58 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default MailItem.Move

You can't get the original folder from the ItemAdd() event in the target
folder. You'd need to subscribe to ItemRemove() in any possible source
folder. That fires after the item was removed, and doesn't tell you what was
removed, but it will provide a clue as to which folder an item was removed
from.

--
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


"j" wrote in message
...

Hey All,

I'm developing shared AddIn for Outlook 2003, C# 2.0.

The scenario:

i subscribed to Item Add event for 'My Folder'.
i open Otulook (AddIn is loaded) and psysically move item from 'Inbox'
folder to 'My Folder'.

in the code: i catched the 'Item add' event, and want to know from
wchich fodler item was dragged/moved.

I wonder if there any solution for that???, cause mailItem 'Parent'
property pointed me to current folder the item present.



Thanks for advance.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
move mailitem in ItemSend shubhangi Add-ins for Outlook 3 October 29th 07 02:36 PM
Move MailItem John Tripp Outlook and VBA 2 June 22nd 07 05:07 AM
MailItem.Move changes Received Date Frank Perugini Outlook and VBA 1 January 21st 07 11:27 PM
MailItem.Move changes Received Date Frank Perugini Add-ins for Outlook 1 January 21st 07 11:27 PM
How can I create a MailItem that displays like a received MailItem ? Clive Outlook - Using Forms 0 February 27th 06 04:14 PM


All times are GMT +1. The time now is 08:11 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-2025 Outlook Banter.
The comments are property of their posters.