Catching the add new folder in a MAPIFolder.

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 
S

Semut

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top