Explorer has been closed

J

janni.kajbrink

I am trying to register a new item in the menu when the user opens a
new window in Outlook. When I'm accessing any property in the new
Explorer a COMException is thrown. I'm developing using VSTO 2005 SE
and the version of Outlook is 2003.

The exception is thrown when I'm trying to access the CommandBars
property on the Explorer object.

Private Sub m_Explorers_NewExplorer(ByVal Explorer As
Microsoft.Office.Interop.Outlook.Explorer) Handles
m_Explorers.NewExplorer

Dim o As Office.CommandBars = Explorer.CommandBars

End Sub

/Janni
 
K

Ken Slovak - [MVP - Outlook]

Get them in the first Explorer.Activate event. Lots of things aren't
available yet in NewExplorer or NewInspector.
 

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