Solved

c# and visio

Posted on 2003-11-17
3
636 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now