DoSelectionChange - Test if in root folder (Outook Today)

Add-in Express™ Support Service
That's what is more important than anything else

DoSelectionChange - Test if in root folder (Outook Today)
The Explorer has been closed and cannot be used for further operations 
Matt Driver


Matt


Posts: 152
Joined: 2004-08-17
Hi

I am getting "The Explorer has been closed and cannot be used for further operations." when users change explorer selection between Outlook Today (root folder) and their callender. I need to test in DoSelectionChange to see if I'm in a root folder & disable the buttons if I am.

Does anyone know how to test if you are in root folder ?

Thanks :?:

Matt
Posted 16 Aug, 2005 06:30:53 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Matt.

You can use the Parent property of Outlook folder to check if you are in a root folder(Parent = null if you are in a root folder). Also look at the GetFullFolderName function in the ADXAddinModule.cs file to learn how we get the full path for a specified folder.
Posted 16 Aug, 2005 09:07:17 Top