tags:

views:

30

answers:

1

I learned how to add an item to the right-click context menu, but I would like to add an icon too. I tested adding a value Icon to the key (imagine that the key is HKCL\lnkfile\shell\MY COMMAND\command, I added the icon value to HKCL\lnkfile\shell\MY COMMAND) but it doesn't work, I put the path to the icon inside it but it's 32x32, maybe is that the problem maybe no... do someone know how to add an icon to my menu item?

Thanks for any answer

A: 

This might be a long shot, but try creating a String value named "Icon" under the HKCL\lnkfile\shell\MY COMMAND key, and then set the value to the path to your icon (e.g. C:\Program Files\Your Program\YourProgram.exe,0), assuming your icons are embedded in whatever application you specified to run in your command.

Cory Larson
Mhh i've tested it but it's not working... actually the exe file has a custom icon, but if I create a shortcut to that exe file the icon path is bla\bla\myexe.exe without ",0"... I've tested it too but it's not working. I'm using C# with visual studio 2010.
Fire-Dragon-DoL
What happens if you just put in a path to an .ico file? Like this random screenshot: http://img148.imageshack.us/img148/3687/227b9c14837.png
Cory Larson
I tested, I put the value with quotes and without, tested with a 32x32 icon and with a 16x16 icon, but still not working
Fire-Dragon-DoL