![]() |
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'm using VS2008 & Outlook 2007. My application tries to watch Outlook folders, their additions, renames, moves and deletions. I have a wrapper class for a folder that has class level variables for folder (Outlook.Folder) and it's subfolders (Outlook.Folders). When this class is initialized, these variables are set and events attached (see below my code). In ThisAddin_Startup "watched" folder and it's subfolders are iterated, wrapper classes created and added to a class level hashtable. The problem is, BeforeFolderMove for a folder in my wrapper class fires only occasionally, but folder addition and change always do. This shouldn't be a scope issue, as the two other events do fire. Or what's happening? Thanks for any help. .... private Outlook.Folders _folders; private Outlook.Folder _folder; public DFolder(Outlook.MAPIFolder folder) { // Set folder variables _folder = folder as Outlook.Folder; _folders = folder.Folders; // Setup events _folder.BeforeFolderMove += new Outlook.MAPIFolderEvents_12_BeforeFolderMoveEventH andler(folder_BeforeFolderMove); _folders.FolderChange += new Outlook.FoldersEvents_FolderChangeEventHandler(fol der_FolderChange); _folders.FolderAdd += new Outlook.FoldersEvents_FolderAddEventHandler(folder _FolderAdd); } |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Event loop when saving Task item in event handler | Mustafa | Add-ins for Outlook | 1 | August 8th 08 07:24 PM |
How do I stop an event from changing to recurring event automatica | WON | Outlook - Calandaring | 1 | March 2nd 08 10:42 PM |
Problem with CommandBarComboBox Change Event (Event fires only once) | M. Khalid Farooq | Add-ins for Outlook | 1 | October 19th 06 03:34 PM |
getting calendar event reminder for deleted event | [email protected] | Outlook - General Queries | 3 | September 4th 06 03:11 PM |
can a calander event to automaticaly reply during the event? How | DG at uei | Outlook - Calandaring | 1 | April 28th 06 08:45 AM |