Hello.How can I(or can I?) convert bitmap,jpeg,tiff...files to icon files?I have tried to do this:
pictureBox1.Image.Save(@"e:\abdullah akaln\q.ico",ImageFormat.Icon);
But it didn't helped...When I tried to choose this icon to my folder an error appeared:"e:\abdullah akaln\q.ico there aren't any icon files in this folder"(I hope I translated truly)Can someone help me?
Thanks in advance...(Sorry for my bad English)
Loading

Zoran HorvatPosted Nov 17, 2010, 7:34 PM
Real problem, as I see it, is why doesn't .NET Framework throw exception, like invalid operation or not implemented exception. Instead, it silently ignores ImageFormat.Icon and uses ImageFormat.Png.
New icons use PNG format below, but still I do not agree with this solution in .NET.