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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Handling Task Item Delete Event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 24th 06, 10:25 AM posted to microsoft.public.outlook.program_forms
AtulSureka
external usenet poster
 
Posts: 11
Default Handling Task Item Delete Event

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


All times are GMT +1. The time now is 04: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.