custommenu

S

Saritha

Hi,
I'am writing Visio Add-on to add custom menu items to standard menu.But
How to delete menuitems which i dont need from that standard menu.
am writing like this:
Microsoft.Office.Core.CommandBars theCommandBars;
Microsoft.Office.Core.CommandBar commandBarToDelete;

theCommandBars = (Microsoft.Office.Core.CommandBars)
visioApplication.CommandBars;

string CommandBarName;

commandBarToDelete = theCommandBars[CommandBarName];

commandBarToDelete.Delete();

But what to pass for CommandBarName(which values i've to give)??? to delets
say: Help from the standard
menu.

Thanks

Saritha.
 
C

claires

A quick guess, but can you get a handle to the command bar items, if yo
can you may be able to access the 'Help' from there which you can the
maybe delete? For example, is there a MenuItem object which you ca
pass an index to and subsequently remove/hide/delete it from the menu


-
claire
 

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