![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I am trying to capture the Delete Task Item Event. For that I am handling the ItemRemove event of Task folder. But handling this event does not provide me the Task Item which is deleted. How to get the task item within the event handler ?????? I have used the following code for the same. using System; using Outlook = Microsoft.Office.Interop.Outlook; namespace OutlookManager { class Program { static void Main(string[] args) { Outlook.Application application = new Outlook.Application(); Outlook.NameSpace nameSpace = application.GetNamespace("MAPI"); Outlook.MAPIFolder folder = nameSpace.GetDefaultFolder(Outlook.OlDefaultFolder s.olFolderTasks); folder.Items.ItemRemove += new Microsoft.Office.Interop.Outlook.ItemsEvents_ItemR emoveEventHandler(Items_ItemRemove); Console.ReadLine(); } static void Items_ItemRemove() { Console.WriteLine("Some item has been removed"); } } } Regards Atul Sureka |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calendar item will not delete on cancel | Charles | Outlook - Calandaring | 0 | February 5th 06 11:43 PM |
Cannot open Calendar item to delete... | kage13 | Outlook - Calandaring | 1 | February 1st 06 10:17 PM |
calendar item | Sue Mosher [MVP-Outlook] | Outlook - Calandaring | 5 | January 24th 06 07:17 PM |
Event Banners | Fishers | Outlook - Calandaring | 4 | January 17th 06 10:23 PM |
How to handling Custom Form Control Event in VB Com Add-In? | Raphaël ZHOU \(Jadiam\) | Outlook - Using Forms | 1 | January 11th 06 07:31 AM |