menu objects disappearing - if 2nd Word, close 1st Word, close document

D

David Thielen

Hi;

First off, this is a C# IDTExtensibility2 (not VSTO) add-in - under
Word 2003.

Ok, here's the really weird bug.
Start Word
From Word select new document so I get a second instance of Word.
Close the first Word application.
Close the document in the second instance of word.

Now my CommandBarControl objects from the menu I created throw an
exception when I try to access their Enabled property.

The menu is still there.

This does not happen if the first instance of word is the one I close
the document in.

Any ideas?

thanks - dave
 
R

Ralf Kaiser

First off, this is a C# IDTExtensibility2 (not VSTO) add-in - under
Word 2003.

Ok, here's the really weird bug.
Start Word
From Word select new document so I get a second instance of Word.
Close the first Word application.
Close the document in the second instance of word.

Now my CommandBarControl objects from the menu I created throw an
exception when I try to access their Enabled property.

The menu is still there.

This does not happen if the first instance of word is the one I close
the document in.

Any ideas?

Hello,

as far as i know each menu/toolbar/button that you are using in DIFFERENT
windows has to have a unique "Tag" value. Try setting a "Tag" value for all
of your GUI parts and it should work.

Ciao,
Ralf
 

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