Answer the question
In order to leave comments, you need to log in
C#. How to set the icon of the explorer context menu item from the resources of the exe file in the registry?
The crux of the issue is in the title. Now, when creating an icon, I pull it out of the resources, save it and specify the path to the *ico file. Is there a way to "direct" it?
I set it in the registry like this:
On the path HKEY_CURRENT_USER\Software\Classes\jpegfile\shell\MyContextMenu I create a string parameter Icon with the value as the path to the *ico file.
Answer the question
In order to leave comments, you need to log in
Instead of the path to ico, specify the path to the exe and, separated by commas, the number of the icon in the resources, for example, C:\WINDOWS\system32\notepad.exe,1
Here is a good example: stackoverflow.com/questions/6799553/how-to-set- ai...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question