473,388 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Mouse Right Click Menu - How to do this?

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
Nov 15 '05 #1
3 32902
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/...tifyiconCS.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)
"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #2
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

"Guillermo 'guille'" <gu****@en.elguille.info> schreef in bericht
news:%2****************@TK2MSFTNGP10.phx.gbl...
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/...tifyiconCS.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)
"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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


Nov 15 '05 #3
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.
"phoenix" <pa******@skynetWORK.be> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

"Guillermo 'guille'" <gu****@en.elguille.info> schreef in bericht
news:%2****************@TK2MSFTNGP10.phx.gbl...
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/...tifyiconCS.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)
"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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



Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: yaktipper | last post by:
This explains how to disable the view source / right-click menu in Netscape 4, Netscape 6 and Internet Explorer (IE). <script language="JavaScript"> //This code is the beginning of the right...
5
by: MisterG | last post by:
Using the following code I am able to open a new window when a user right clicks an object in my document. if (window.event.button == 2) { Win1 = window.open("","","height=200,width=200");...
12
by: Veeresh | last post by:
In my asp.net application I want to block mouse right click on my web pages. That means instead of popup menu I may just display some message or no message at all. Hot to do that? Thanks, Veer
0
by: Antoine | last post by:
I havent got room on an aspx forms data items but want to have an alternate option to double click on its link (like a right click context menu) so make the most of functionality with the lack of...
2
by: Mad Scientist Jr | last post by:
I am editing an existing application that has a System.Windows.Forms.TreeView with a right-click menu with several options. I want to get rid of the TreeView alltogether and rip out the code for...
0
by: SaherAlim | last post by:
Hi All, When the user right clicks on the desktop or selects a file and right clicks, I want him to see my own submenu along with the Windows context menu(like winzip and many other programs...
7
by: Steve | last post by:
How do you disable the mouse right click to prevent pop-up window? Or if I want to have cut/copy/paste on pop-up window use same code as my custom cut/copy/paste that are triggered by toolstrip...
3
by: rchak2k | last post by:
Hi! I have to capture the event of mouse right click menu selection. e.g. I need to capture the event if someone click the "close X" option displayed at the bottom of the right click menu. Any...
4
by: Przemek M. Zawada | last post by:
Dear Group, I have written a software (C#/VS2005), which enter current directory, match all requested files and rename it recursively (removing special chars, etc). What I want is to add in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.