Right click control in windows explorer

T

Tom Rahav

Hi,
I would like to develop an application that runs in the system's tray and
whenever the user clicks CTRL+Right Click (mouse) on a file or folder, my
application will pop-up on that file or folder with relevant menu. For
example, if the user clicks CTRL+Right Click on a file called "Test.txt", my
application will pop-up with a new containing: "Copy to different location",
"Open with textpad", etc.
I thought about adding context menu for my application, but I need some more
"power" within this menus.
How can I "track" the keyboard/mouse events while running in the tray and
popping up the menu next to the file/folder icon?

Thanks!
Tom.
 
G

Gary Chang[MSFT]

Hi Tom,

Thank you posting!

Based on your description, your application should be a Windows shell
hook/extension. The general convention to create such a project is using
the native code. Currently there is no .NET framework builtin support for a
shell extension project. You need to implement it via PInvoke Win32 API
ansd COMInteop.

I found some popular shell extension guide and samples in the CodeProject
website, they may be useful to you on this issue:

The Complete Idiot's Guide to Writing Shell Extensions
http://www.codeproject.com/shell/shellextguide1.asp

Creating a shell extension with C#
http://www.codeproject.com/csharp/dateparser.asp


Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Tom Rahav said:
Hi,
I would like to develop an application that runs in the system's tray and
whenever the user clicks CTRL+Right Click (mouse) on a file or folder, my
application will pop-up on that file or folder with relevant menu.

Hi Tom,

We offer a 100% .NET component FREE for non-commercial use that provides
Explorer context menus. Check out Mini-XMenus at
http://www.mini-tools.com/goto/xmenus
How can I "track" the keyboard/mouse events while running in the tray and
popping up the menu next to the file/folder icon?

We also offer a FREE .NET component that monitors for keyboard/mouse events
across all applications. Check out Mini-Input at
http://www.mini-tools.com/goto/input
 

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