El Mac
El Mac

Reputation: 3419

C# Application Shortcut Icon

I have a problem with the Setup of a C# application. Happens I have added an icon to the application (under project settings, on the form itself and on the shortcuts inside the setup), but the Icons do not appear on the shortcut I create on the desktop and Start Menu!

I have had this problem more than once, it appears to have something to do with Windows 7 and the resolution of the .ico file. I have solved it many times in the past trough trying (changing the resolution of the icon), but somehow this time it will not work.

Furthermore: If I use the wrong resolution (too high for example), the application won't start. Specially on Windows XP.

I hope you can help me. What resolution should I use? What is standard?

Upvotes: 1

Views: 3484

Answers (2)

Sinatr
Sinatr

Reputation: 21969

As you already mentioned, ico-file should contain several icons. You assign icon in the project properties, by setting Icon in Application category. Windows will choose most appropriate icon (when creating icon on desktop, to example).

You will surely need icon editor. I am using Greenfish Icon Editor Pro. It's free and seems cool.

Then you need to know about sizes, but it's very easy to find (also GFIE warns when you create icon which will be only valid for Vista or higher), to example, here.

Upvotes: 2

angel
angel

Reputation: 332

put your icon in the same folder where you have your .xml, .c, .. files after that, on each window, add this property :

Icon='../iconName.ico'

you can place your icon at an other folder but make sur than your icon is into your project. but be carefull, because an icon file have 2 icons. one which have 32x32 size and an other which have 16x16. one is for taskbar and the other is for topleft corner of the window...

Upvotes: 0

Related Questions