Mouse Right Click Menu - How to do this?

A

Anand Ganesh

Hi All,

When the user right clicks on the desktop or selects a file and right clicks
the mouse he should see our own submenu along with the Windows context menu.
How will I do this in Visual C# ?

Any suggestions please?

Thanks for your time

Regards
Anand Ganesh
 
G

Guillermo 'guille'

Create a "ContextMenu" object and attach it to the control you want to have a
context menu.
Yo can do this by code or by design.

If you want an example to attach a context menu (popup menu) to the notofyIcon,
the text is in Spanish, but the code is in C# (or VB .NET) there are two
samples.
http://www.elguille.info/NET/csharp/beta2/notifyiconCS.htm


--
Nos vemos.
Guillermo
--------------
P.S.
Si te parece últil mi sitio:
http://www.elguille.info/lonuevo/lo_nuevo0312.htm#dic30
--------------
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)
 
P

phoenix

I think he wants to add it to the 'global' right-click menu which you see
when you do it on file in explorer (like winzip and many other programs do).
An ordinary contextmenu won't do the trick though you can use it to create
the menu. I haven't seen an example in C# yet but here's a C++ example
http://support.microsoft.com/?kbid=298109

Yves
 
A

Anand Ganesh

Yes phoenix, you are right I am looking for the 'global' right-click as in
file explorer. The Winzip program attaches its own menu like that.

Thanks for your time.

Regards
Anand Ganesh.
 

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