I have a basic C# form where the user select a folder from outlook (using Microsoft.Office.Interop.Outlook.Application.Session.PickFolder())
I want this folder to be saved so every time the user opens the form, the last select folder will be restored.
How can that be achieved?
Thanks
When the user picks the folder via
PickFolder(), store theFolder.EntryIDandFolder.StoreIDof the selected folder. You can then useSession.GetFolderFromID()to retrieve the previously selected folder.See this MSDN example for reference.