Hello All,

I am making a Word Add-in in VB.NET. I am willing to have my own Menu Item
in the Menu Bar like File, Edit, Etc and under my Menu item i will be having
some more items as File->New, Edit->Copy, etc.
Now i am getting 2 problems:
1/ When I run the program for 1 document things are fine but when i open
more than 1 document simultaneously than I did not get that menu working
(menu is shown but its not functioning) in other documents than the 1st
document. I have solved this problem by creating the menu item at
AppObj_WindowActivate function but this function is called whenever the
document is activated even i minimize or maximize the document.

2/ When I uninstall the package that I install then the Menu Item is not
removed. Its functionality are removed but with that the menu item should
also be deleted which is not deleted. So i have to manually remove it so that
it is not visible later on.

Please help me with these 2 problems as I am in great trouble.

GS

RE: Word Addin by Praful

Praful
Fri Apr 15 06:06:01 CDT 2005

Hello All,
Please reply to the problem.
I am waiting for the reply from a GENIOUS.

GS

"Praful" wrote:

> Hello All,
>
> I am making a Word Add-in in VB.NET. I am willing to have my own Menu Item
> in the Menu Bar like File, Edit, Etc and under my Menu item i will be having
> some more items as File->New, Edit->Copy, etc.
> Now i am getting 2 problems:
> 1/ When I run the program for 1 document things are fine but when i open
> more than 1 document simultaneously than I did not get that menu working
> (menu is shown but its not functioning) in other documents than the 1st
> document. I have solved this problem by creating the menu item at
> AppObj_WindowActivate function but this function is called whenever the
> document is activated even i minimize or maximize the document.
>
> 2/ When I uninstall the package that I install then the Menu Item is not
> removed. Its functionality are removed but with that the menu item should
> also be deleted which is not deleted. So i have to manually remove it so that
> it is not visible later on.
>
> Please help me with these 2 problems as I am in great trouble.
>
> GS

Re: Word Addin by Charles

Charles
Fri Apr 15 07:02:44 CDT 2005

Hello,

This newsgroup is about vba, not VB.NET.

I would guess that your customization context when you install your menus is
normal.dot (the default). This is bad practice. This is virus-like behavior.
I would guess that you are installing the actions for the menu in the
customization context of your first document. Thus your functionality is
stored in your first document but your menus are installed in the
application.

If you can, create a custom document template for your documents, with your
menus and functions. Then have your users create documents based on your
template. Those documents will have your menus and functions.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"Praful" <Praful@discussions.microsoft.com> wrote in message
news:B7D7F1A9-8B0E-4471-B229-963B8E202FAF@microsoft.com...
> Hello All,
>
> I am making a Word Add-in in VB.NET. I am willing to have my own Menu Item
> in the Menu Bar like File, Edit, Etc and under my Menu item i will be
> having
> some more items as File->New, Edit->Copy, etc.
> Now i am getting 2 problems:
> 1/ When I run the program for 1 document things are fine but when i open
> more than 1 document simultaneously than I did not get that menu working
> (menu is shown but its not functioning) in other documents than the 1st
> document. I have solved this problem by creating the menu item at
> AppObj_WindowActivate function but this function is called whenever the
> document is activated even i minimize or maximize the document.
>
> 2/ When I uninstall the package that I install then the Menu Item is not
> removed. Its functionality are removed but with that the menu item should
> also be deleted which is not deleted. So i have to manually remove it so
> that
> it is not visible later on.
>
> Please help me with these 2 problems as I am in great trouble.
>
> GS