WPF application shows “Image format is unrecognized ”

后端 未结 5 1140
别跟我提以往
别跟我提以往 2020-12-17 18:56

I have a WPF application which runs fine on Windows 7 OS. But the same app crashes on a particular few Windows XP machines.

It runs fine on few windows XP machine.

5条回答
  •  醉酒成梦
    2020-12-17 19:38

    Unfortunately, simply removing the 256x256 application isn't the greatest solution when you want to support the large icon size for Windows Vista, 7, 8 and forward.

    Another way to solve this problem ... is to not compress the 256x256 image in the icon. See this forum thread for more info.

    How does one do that? Well, most icon utilities will have an option for this (as this is a common problem). I use IcoFX and below you can see the option (highlighted in red) I needed to clear.

    IcoFX Screenshot

提交回复
热议问题