Embedded Resource Icons, File Type Associations (Windows 10)

  • Thread starter Thread starter JaedenRuiner
  • Start date Start date
J

JaedenRuiner

Guest
Okay,

Specs:
.Net Framework 4.7.1
C# (latest)
VS2019

I have two Icons. I've added them to the Resources.
One is the "Application" and form icon for all of the program. The other is the icon to be used for the associated file type.

In older versions of windows, there was dialog for editing the File Types. In this dialog i could just select the icon i wanted from
any exe or dll with embedded resources. However, in Windows 10 no such dialog exists any more, so I have no way to select
the icon for a file assocciation.

However for some crazy reason, the Resource Resx icons don't seem to be exposed as embedded resources to the Windows Shell32.

I can add the icon to the exe after the build, but not sure if that will work. I can add the association to the registry, but have no idea
what "id" to put in the DefaultIcon string value for the associated type.

I also tried the "Native Resource File" but that kills all the assembly info and other manifest information in lieu of the new .res file.

Isn't there a simple straightforward way to have .net simply build the exe so that embedded resources can be used by the Shell32 system?

Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner

"Never Trust a computer. Your brain is smarter than any micro-chip."
PS - Don't mark answers on other people's questions. There are such things as Vacations and Holidays which may reduce timely activity, and until the person asking the question can test your answer, it is not correct just because you think it is. Marking it correct for them often stops other people from even reading the question and possibly providing the real "correct" answer.

Continue reading...
 
Back
Top