Solved

How do I create an icon in Visual Studio 2005?

Posted on 2008-06-24
2
2,180 Views
Last Modified: 2013-11-26
I'm trying to create an icon using Visual Studio 2005 following these instructions http://www.codeproject.com/KB/graphics/HowToIcon.aspx.

I'm not a Visual Studio programmer.  I use Access VBA and PHP.  However it seems pretty straight forward.  I created a Windows Application project then selected Project>Add new item and selected the icon template.  I selected New Image Type and 32x32 and 256 colors.  I drew a squiggle on the icon canvas and saved the icon.  Icon1.ico appears in my project folder.  If I preview it it looks OK, but it doesn't show itself s its icon in the Windows Explorer detail view and it doesn't work as an icon for a shortcut.

Any ideas?  I attached the file as Icon1.txt since this system does not allow .ico extensions.
0
Comment
Question by:anAppBuilder
2 Comments
 
LVL 4

Accepted Solution

by:
Joni Kettunen earned 500 total points
ID: 21863442
There are size issues for a icon. To make a good icon should create Windows icons48 × 48, 32 × 32, 24 × 24, and 16 × 16 pixels versions of same icon in a icon file. Missing one size causes rough icon to be shown.

More info about Creating Windows XP Icons (http://msdn.microsoft.com/en-us/library/ms997636.aspx)

The link above gives default color palette used in windows icons and guidelines for icon creation.

I hope it helps.
0
 

Author Comment

by:anAppBuilder
ID: 21863543
Thank you, Valkoturkki.  That was the problem.  And thanks for the link.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question