Trigger an event in Outlook Folder Home Page?

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

I am writing an Outlook XP/2003 COM Add-in in C# (Visual Studio .NET 2003).
As part of my application, I have a folder home page which contains an
Outlook View Control.

I would like to update the folder home page when an item is added to the
folder displayed in the Outlook View Control. The view control has a
property called ActiveFolder which will give me the Outlook.MAPIFolder
object, and the Items property of that folder which has should have an
ItemAdd event. However, it appears as if VBScript does not support
WithEvents, so I don't seem to be able to use any of the examples I have
found on the internet.

Alternatively, if there was any way for my C# add-in to trigger an event in
the folder home page, my add-in could notice the ItemAdd and trigger the
event.

Is there any way trigger an event from my add-in that I can catch in the
VBScript/JavaScript on my folder home page? Perhaps a system event like a
registry change or something like that?

Michael
 
Hello Michael.

you could write an Active-X Control that holds your Viewcontrol and a
reference to your outlook Folder.

Host that Active-X Control in your FolderHomepage.
You can raise events from Active-X to your Weppage or do all stuff in your
Active-X Control, like get selection from control, have a menubar for
creating emails, fax,etc....

Greets, Helmut Obertanner
 
Back
Top