Question Need help in placing icon for windows application

vbcoder123456

New member
Joined
Sep 11, 2008
Messages
2
Programming Experience
Beginner
Hi,
I have developed a windows application using VB.NET, i need put a icon file for the .exe application file. I tried the following ways, Right clicked the project->went to properties-> there there is a option for putting application icon. I tried putting my .ico(16X16 and 32X32) file which i created using photoshop. But it says "Not a valid icon file".

Now how to create a valid icon file for my application ...? Please help ....
 
Hello.

Did you just save the file with the ending .ico? If yes then it is not an Icon.
Photoshop can't (for whatever reason) save Icons out of the box (The Gimp f.e. can), you'll need a Plugin to do so. Try Google and you'll find a dozen sites offering this for free.

Bobby
 
01) In the Solution Exporer, double click "My Project" to open project window

02) It should open to the "Application" tab but if it doesn't, click the tab to open

03) In the Application tab or the Project Properties window, you will see a label that says "Icon:" and inside its combox it should say "(Default)" as the item selected for new projects

04) Open the combox and select "<Browse...>" and navigate to your icon.

This will add the icon to your project and you should see your selected icon as the exe icon once you compile and build your project.
 
Setting the icon in the Application tab of the project properties window will set the icon that windows sees.
To add additional icons to your exe, simply add them to the solution (right click the project name in the solution explorer and click "Add existing item") once they are added to the solution make sure their "Build Action" property is set to "Embedded Resource" and the "Copy to OutPut" is set to "Do not copy"

And as Robert_Zenz's has pointed out, make sure they're actually icons, Paint Shop Pro (as I remember it) has the same problem as Photoshop.
 
Back
Top