Add-In does not unload on shutdown

  • Thread starter telephasic.workshop
  • Start date
T

telephasic.workshop

I have a COM Add-In for MS Word written in C#, adds a toolbar a Word
document. I am setting the LoadBehavior to 8 load on demand.

The problem is, when I close the Word document and open another Word
document, or the same document, and go to the Tools menu the checkbox
next to my add-in is still checked, but my toolbar isn't loaded in the
Word document. I have to go through the trouble of unchecking the
checkbox next to my add-in to unload it, clicking ok, than going back
to the tools menu and checking the the checkbox again. this loads the
toolbar fine, but this is a pain, and users will be annoyed too.
something is changing the LoadBehavior registry setting to 9, which I
think is why the checkbox is already checked. How do I keep the
registry setting to 8?
 

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