Thread: Deleted Items
View Single Post
  #3  
Old March 7th 06, 01:48 AM posted to microsoft.public.outlook.program_addins
Rog
external usenet poster
 
Posts: 62
Default Deleted Items

Thanks as always Sue:

Outlook.MAPIFolder mFolder
=(Outlook.MAPIFolder)HelperClass.GetPropertyHelper (item, "Parent");
string fname = mFolder.Name;

if(fname.IndexOf("Deleted") = 0)
{

}

"fname" seems to be the original folder that the item was deleted from,
not the deleted items folder. If I close outlook and restart then it
picks up.
I am running this code on a button click not on any outlook event.
Rog

Sue Mosher [MVP-Outlook] wrote:
Please show the code you're using the access the item and explain what event you're using to run it.

Ads