Events with items

Add-in Express™ Support Service
That's what is more important than anything else

Events with items
 
Emmanuel Poudret




Posts: 3
Joined: 2004-12-04
Hello,

i'm trying to capture events when i add, change or delete an item in a calendar of outlook, but don't understand how i can do this ...
Cal someone help me please. I've seen nothing in the examples ...

Thank you

Emmanuel
Posted 14 Dec, 2004 07:56:02 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Hi Emmanuel,

Try the ItemAdd, ItemRemove and ItemChange events of a folder's Items collection.
Posted 14 Dec, 2004 08:08:48 Top
Emmanuel Poudret




Posts: 3
Joined: 2004-12-04
it's what i've done but it doesn't work ... i've an error.

This is the code i wrote :

In the public class Addinmodule
Friend WithEvents LesItems As Items

then

Private Sub AddinModule_OlExplorerFolderSwitch(ByVal sender As Object, ByVal explorer As Object) Handles MyBase.OlExplorerFolderSwitch

Dim expl As Explorer
expl = explorer
LesItems = expl.CurrentFolder.Items

End Sub

and then

Private Sub LesItems_ItemChange(ByVal Item As Object) Handles LesItems.ItemChange

MsgBox("It changed")

End Sub

I don't understand why there's an error ...
Posted 20 Dec, 2004 05:05:21 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Emmanuel,

I have already written an example project for you.
Wait a little. I will send you a project in several minutes.
Posted 20 Dec, 2004 05:51:20 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Emmanuel,

I have sent you a project. Please, check your mail box.
Posted 20 Dec, 2004 06:21:15 Top
Emmanuel Poudret




Posts: 3
Joined: 2004-12-04
Hi Sergey,

thanks you, i'm going to try the code now.
I hope i'll understand :D

Emmanuel
Posted 20 Dec, 2004 07:29:25 Top