Answered by:

How to change the .exe Icon?

Question

I'm sorry, this is likely an incredibly stupid question, but I cannot, for the life of me, figure this out. When I change the icon under Application Properties > Application > Resources > Icon, I get a build error. What am I doing wrong? I just want to change the icon... Any help and information would be greatly appreciated.

Thanks Again,

Friday, March 30, 2007 11:30 PM

Answers

Thanks for your help, your comment set me in the right direction. I took a look at the .ico file, and the program I was using (Paint.NET - great program) was saving several versions of the .ico within the same .ico file (125 X 125, 64 X 64, 32 X 32, etc.). When I changed this it worked without a problem. I didn't even realize this setting was checked in Paint.Net...

Thanks Again for all of your help.

Saturday, March 31, 2007 3:08 PM

All replies

Hmm, well, for a start, is the icon an actual .ice, or has it been renamed from .bmp or .gif or something like that?? That has caused me problems before with other programs, but i haven't yet changed the icon with C#, so i found a BMP to ICO converter. That worked.

Thanks for your help, your comment set me in the right direction. I took a look at the .ico file, and the program I was using (Paint.NET - great program) was saving several versions of the .ico within the same .ico file (125 X 125, 64 X 64, 32 X 32, etc.). When I changed this it worked without a problem. I didn't even realize this setting was checked in Paint.Net...

Thanks Again for all of your help.

Saturday, March 31, 2007 3:08 PM

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.