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