VB.Net COM Add-in for MS Wors 2003 Beta problem

  • Thread starter Jitender Singh Rawat
  • Start date
J

Jitender Singh Rawat

Hi all,

I am currently working on a project, which involves
creating a COM Add-in using VB.Net, for MS Word 2003.

As usual, I am creating few custom menu buttons under the
File and Tool menus. These menu buttons are being created
in the OnStartupComplete event and removed in the
OnBeginShutdown event of the COM Add-in's connect class.
So, as per logic, everytime the Word starts, custom menu
buttons should get created, and on closure they should get
deleted.

Now my problem is that when I install the add-in and run
MS Word, i can see the custom created buttons. But when i
close the MS Word, the custom created buttons are not
getting deleted. I have checked this.... i.e. i un-
installed the COM-Add-in and run MS Word...the earlier
created custom menu buttons are still there! ...... and as
per logic, since Word is deleting them everytime COM Add-
in is closed, they should have not been there .....

I tested whether the menu buttons are being deleted in the
OnBeginShutdown....and they were...but some how...they
were being deleted temporarily.....and not permanentlly.

I wud like to mention here .. that I am using
CommandBarControl and CommandBar objects to create the
custom menu items. Also, I am using temporary=true
parameter while adding the commandbarcontrol.

Hence, i wud like to request u to kindly help or guide me
on this issue.

......its very urgent and I have already wasted lot of time
on it!

Thanxs in advance for ur kind help!!!

Jassi
 
C

Cindy Meister -WordMVP-

Replied to duplicate question in an office.developer
newsgroup

Cindy Meister
 

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