I have an application that creates files. I would like to associate these files with the application so that double-clicking on the file launches my application.
Everything works correctly, except for the annoyance that the icon looks the same as the icon of my application. I would like to have one icon for the application and one icon for it.
The DefaultIcon value in the registry requires the syntax "app.exe, 1", where 1 is the icon index. It seems that .NET resources are not Win32 resources.
I tried to follow, but to no avail:
- Select "Embedded Resource" as a file.
- Adding an icon to a resource file.
The only thing that worked was the icon file, separated from the executable file and pointing to it. However, it seems to me that this is surrender.
Any ideas how to solve this?
source share