Solved

c# and visio

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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