contact delete event

M

Mircea S.

Hi,

It seems I do not have a delete Contact Item event in the COM Add-In I
develop for Office 2000. Is there a possibility to catch this event?

TIA,
Mircea
 
K

Ken Slovak - [MVP - Outlook]

There's an ItemRemove event for a MAPIFolder's Items collection, but
it fires after the item is already deleted and provides no handle to
the deleted item. You could use ItemAdd on the Items collection of the
Deleted Items folder but that wouldn't fire if the item was hard
deleted (Shift+Delete). There's no real good solution to the problem
I'm afraid.
 
M

Mircea S.

I was afraid of that. I wonder why Microsoft didn't included such an
important event in the object model?!

Thanks for answering!
Mircea
 
K

Ken Slovak - [MVP - Outlook]

It's something we've complained about for years. Even with Outlook
2002 and later where there is an Item.BeforeDelete event that passes
along the item being deleted the functionality is very limited. You
only get the event when an open item is deleted in the Inspector using
the File, Delete menu action. You don't get the event when someone
deletes an item from a folder view (Explorer).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top