Catching the add new folder in a MAPIFolder.

  • Thread starter Thread starter Semut
  • Start date Start date
S

Semut

Hello, through FolderAdd event I can catch the event of adding folder within
the specified folders collection.But, if the add folder action was in the
child folder of the collection, the event can't be caught.

Any suggestion of go about this without having to actualy get the each of
the child folders collection to hook up to another FolderAdd event.

Is there something global, like NewInspector when there are any add new
item/open item event within the Outlook, it will get trigger.?

thank you.
 
No, you'd have to set up for any set of Folders you were interested in. I
use wrapper collections of classes to handle that sort of thing. I define a
class that wraps a Folders collection and has a declaration using WithEvents
for any event I want to handle. Then I instantiate a class for each set of
items (Folders in this case) and add each class to the wrapper collection.
 
thanks

Ken Slovak - said:
No, you'd have to set up for any set of Folders you were interested in. I
use wrapper collections of classes to handle that sort of thing. I define a
class that wraps a Folders collection and has a declaration using WithEvents
for any event I want to handle. Then I instantiate a class for each set of
items (Folders in this case) and add each class to the wrapper collection.
 
Back
Top