Commandbars and msocontrolpopup

R

Ria

Hi,

I develop Word addins in vb6 and always add dynamically ( in the event
startup complete) a custom menu in the menubar. This works fine. But lately
my menuitems grew and I decided to add to my menu a submenu (also a
msocontrolpopup). So far so good.
But now the weardest thing happens. When I add a new document or open a
document the menuitems from my submenu disappear.
In the visual basic editor I have seen that the instanceid of the submenu
has changed. I think here lies my problem.

How can I keep my submenu items? I used as a customizationcontext the
normaltemplate.
I also found out that my menuitems are not really gone but they are not
shown. Because they are in another instance?

What am I doing wrong? How can I keep everything in the same instance?

Ria
 

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