Public Folder Path

  • Thread starter Thread starter Lorenzo Gonzalez
  • Start date Start date
L

Lorenzo Gonzalez

Is there a way to have a button on a form that would
launch the public folder list and allow the user to pick a
folder and have it return the full path of the folder. I
am trying to avoid the user having to manually type in the
full path of the folder in public folders.

Thank you

Lorenzo Gonzalez
Spherion Corporation
 
The NameSpace.PickFolder method returns a MAPIFolder object but not a file
path and would show all folders loaded at that time.

For anything else you'd have to use something like a treeview control, get
all the folders in the public folder path and place them in the treeview
control in the proper parent and child nodes. The Key property for the node
could be the actual folder path, which would be a unique string as required
for a Key value.
 
You can, of course, build a folder path from the MAPIFolder object by
walking up the hierarchy using the Parent property.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top