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)
About image converting...
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Zoran HorvatRank #792 · 2.9K reputationPosted Nov 17, 2010, 2:34 PM EST
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.