A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

FolderAdd event and folder creation



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 14th 06, 05:22 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 1
Default FolderAdd event and folder creation

Hi, I am currently trying to detect when a user is attempting to create
a new folder in Outlook so that I can present an alternative to the New
Folder dialog when the user is performing this action in a particular
(non-Exchange) message store.

I can intercept the EECMDID_FileNewFolder command via the
IExchExtCommands interface and this allows me to catch folder creation
when the user selects File-New-Folder from the Outlook Menu, however
it doesn't work when New Folder is selected from the right-click
context menu in the hierarchy pane.

I've found that the Outlook Object Model has a FolderAdd event, which I
might be able to make use of in this situation, but I have a suspicion
that this event fires AFTER the call to CreateFolder on the parent
IMAPIFolder object (which is after the New Folder dialog has been
presented and the user has clicked on the OK button to create the new
folder).

Can anyone tell me whether or not my suspicion is correct, and if it is
correct, whether there is any other way in which I might be able to
intercept the New Folder dialog and replace it with my own (when
working with folder objects in my message store)?

Regards,

Seeker.

Ads
  #2  
Old September 15th 06, 09:30 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default FolderAdd event and folder creation

Yep, you're right.

FolderAdd events fires after folder creation. It's signature has an
pointer to the folder object, which was just created.

wrote:
Hi, I am currently trying to detect when a user is attempting to create
a new folder in Outlook so that I can present an alternative to the New
Folder dialog when the user is performing this action in a particular
(non-Exchange) message store.

I can intercept the EECMDID_FileNewFolder command via the
IExchExtCommands interface and this allows me to catch folder creation
when the user selects File-New-Folder from the Outlook Menu, however
it doesn't work when New Folder is selected from the right-click
context menu in the hierarchy pane.

I've found that the Outlook Object Model has a FolderAdd event, which I
might be able to make use of in this situation, but I have a suspicion
that this event fires AFTER the call to CreateFolder on the parent
IMAPIFolder object (which is after the New Folder dialog has been
presented and the user has clicked on the OK button to create the new
folder).

Can anyone tell me whether or not my suspicion is correct, and if it is
correct, whether there is any other way in which I might be able to
intercept the New Folder dialog and replace it with my own (when
working with folder objects in my message store)?

Regards,

Seeker.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OE will not allow creation of a new folder under local folders ElaineMF Outlook Express 11 September 6th 06 10:02 PM
Automate Public Folder Creation John Mc Cabe Outlook and VBA 1 August 16th 06 05:01 PM
How do I place an event in the calendar folder? Doyle Outlook - Calandaring 1 June 10th 06 06:36 PM
Outlook Folder - FolderRemove Event Atul Sureka Outlook and VBA 3 February 14th 06 06:08 AM
Outlook Folder Move Event Atul Sureka Outlook and VBA 0 February 13th 06 06:09 AM


All times are GMT +1. The time now is 08:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.