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

Tags: , , , ,

Hooking events for new items in a mail folder





 
 
Thread Tools Display Modes
  #1  
Old February 17th 06, 09:58 AM posted to microsoft.public.outlook.program_forms
mika
external usenet poster
 
Posts: 4
Default Hooking events for new items in a mail folder

I need to create folder "Test Folder" and catch all events about changing
count of item in this folder. I wrote folowing code:

MSOutlook.MAPIFolder root = Utility.Folder.GetRootFolder(this.Session);

MSOutlook.MAPIFolder testFolder = Utility.Folder.CreateFolder(root, "Test
Folder");

testFolder.Items.ItemAdd += new delegate { MessageBox.Show("This is never
displayed!!!") };

Then I launch Outlook and see my created folder. Try to drag from Inbox some
mail and drop into my folder, but nothing changed. What's I'm doing incorrect?

Ads
 




Thread Tools
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
Cannot copy this folder as it may contain private items carlstev Outlook - General Queries 2 March 9th 06 11:03 PM
Junk E-mail folder - is there a way to create a rule to delete items in this folder older than X days? Jaycee Outlook - General Queries 1 February 22nd 06 05:54 PM
How do I get sent items to be shown in my sent items folder? Sue B Outlook - General Queries 8 January 28th 06 08:46 PM
Items delivered to deleted folder jim Outlook - General Queries 3 January 20th 06 06:08 PM
To Field blank in Sent Items folder Dave Murton Outlook - General Queries 1 January 11th 06 04:59 PM


All times are GMT +1. The time now is 01:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Credit Card - Loans - Web Advertising - Mortgages - Advertising