Solved

c# and visio

Posted on 2003-11-17
3
640 Views
Last Modified: 2012-06-27
Hi.
I'm using the visio 2003 control in c#.
When you right click on a shape the default visio context menu comes up.(Copy ,Paste and so on...).I like that,however I'd like to add another menu item to the context menu.

Does any know how I do that?Both adding the item and tracking it when I click on the item?

Thanks
0
Comment
Question by:getzel
3 Comments
 
LVL 1

Accepted Solution

by:
AJMartin earned 125 total points
ID: 9769935
Hi!
Consider getting and setting the Visio control's ContextMenu property.

Have a look at the .NET Framework SDK Documentation here:
ms-help://MS.NETFrameworkSDKv1.1/cpref/html/ frlrfSystemWindowsFormsControlClassContextMenuTopic.htm
And here:
ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfsystemwindowsformscontextmenuclasstopic.htm

quote:
--------------------------------------------------------------------------------
Note: In order to reuse MenuItem objects that are displayed in a MainMenu for use in a ContextMenu, you must create a copy of the menu using the CloneMenu method of the MenuItem class. You can also merge menu items and their submenu items into a single MenuItem object using the MergeMenu method of the MenuItem class.
--------------------------------------------------------------------------------

I hope that helps!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question