?
Solved

c# and visio

Posted on 2003-11-17
3
Medium Priority
?
656 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
AJMartin earned 375 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

762 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