right click in c# code

Started by david, September 22, 2011, 07:10:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

david

hi everybody,
i want to add a new right click menu when pressing on a shape in visio.
i know there's a way to add a line in the actions section in the shape's shapesheet. but the function writen in the RUNMACRO command has to be a vb function in the visio program. most of the code i wrote is in dot net (c#) but i didn't find a way to add a new menu by right click which calls a function in dot net.

anybody knows?

thanks
David

Jumpy

RUNMACRO calls a VBA-Macro, that's right.
Did you already lookup RUNADDON and RUNADDONWARGS, maybe that's what you need?

aledlund

if you capture the mouse event in your c# program you can do anything you want, putting the action into the shape sheet allows visio to manage it. The visio sdk has some mouse handling examples in the 'event handling' section.
al