Mouse Right Click Menu - How to do this?

  • Thread starter Thread starter Anand Ganesh
  • Start date Start date
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
 
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)
 
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
 
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.
 
Back
Top