Launch a method from the context menu

J

Jonathan

Hello,

I would like to catch the event of a click on a custom context menu
item.
I've seen how to call an add-on, but it's not what I want.

When the user clicks on my item, the add-in must call a method to show
a specific window.

How can I do that ?

I work with C# and VS2003
 
A

Al Edlund

the context menu can fire a custom marker event that can be captured by your
code so that you can call your module. This is usually done by using the
addadvise method documented in the visio sdk. In the last couple of releases
more of this has been exposed in the vba interface as well.
al
 
P

Paul Herber

Hi,
could you tell me something about the easier solution that you've found, please?

I'm having exactly the same problem you had, and I can't see any simple way out.

Thanks in advance! Bye,

Easier solution than what?
We can't see what it was you were looking at.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top