Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to hide the "More Shapes" and "Quick Shapes" menu from the visio shapes window? We have customized stencils with customized shapes added to our visio drawing control and we want to restrict users from adding other visio shapes. This works in Visio 2003 and Visio 2007 machines. But in Visio 2010 drawing control , the more shapes menu appears in the shapes window and allows the user to add other visio shapes.

We iterated the windows collection and made only our customized stencil windows visible and made the other windows including "Shapes" window visibility to false. But this prevented our own stencils too from appearing in the drawing control. When the Shapes window is made visible, our custom stencils appeared but the "more shapes" and "quick shapes" menus appeared at the bottom of the shapes window. How to avoid this? Is there any property to disable these menus from the shape window?

Is there any way to make the visio 2010 drawing control to behave like 2007 visio control. This would be a great solution as this would solve another problem in 2010 drawing control. The background Stencil color and background stencil color gradients could not be set in visio 2010 drawing control as we do in visio 2007 drawing control.

FYI: The visio drawing control is used in C# windows application using Microsoft.Office.Interop.Visio.
Posted
Updated 6-Oct-11 7:57am
v2

1 solution

Try this :

visioControl.Document.Application.DoCmd((short)Microsoft.Office.Interop.Visio.VisUICmds.visCmdHideMoreShapes);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900