How to share common Context Menu between Controls?

J

Joseph Geretz

What's the best way to share a common context menu between controls? At
design time, I can link the context menu to multiple controls, but at run
time, when the menu item is clicked, the event handler for the context menu
doesn't really have any way of knowing what control the context menu is
currently servicing. Any way to easily set this up? Or am I fighting the
paradigm here? On the other hand, this could get really messy if each
control needs its own dedicated context menu.

Thanks for your advice.

- Joe Geretz -
 
G

G Himangi

Use the SourceControl property for this.


---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : Drop-In Explorer GUI Controls For Your Apps (.Net & ActiveX
Editions Available)
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions rapidly in .Net
 

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