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
 
Top