473,387 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,387 developers and data experts.

C#: Setting Icons

7,872 Expert 4TB
C# (and possibly VB.NET) in VS2005 can be a bit tricky.
Here's my little rundown:

Add an icon file to your project (new or exisiting, whichever)
Open the icon file is VS and edit as desired.
(Note: On the left hand side is a small preview of the icon, extra sizes can be added to the SAME icon file there as well as cycling through existing sizes by using the Image menu.)
Set your icons as desired. A 16x16 size will be used withen the taskbar entry and window title bar. A 32x32 size will be used as the main program icon (most likely)

Set the program icon:
Under the project name in the solution explorer will be a grayed folder called "Properties" open it. Under the Application tab is a section for the Icon/Resources. Select your desired icon.

Set the taskbar entry icon and window title bar icon:
Open up the desired form in designer mode. Select the actual form itself. In the properties window scroll to the icon section. Select your icon. (Optionally you can find the "ShowIcon" and "ShowInTaskbar" options and change them as desired)

This took awhile for me to figure out, hopefully it helps the rest of you.
May 17 '07 #1
1 48015
7,872 Expert 4TB
I have made a test icon, it contains a 16x16, a 32x32, a 48x48, a 64x64 and a 96x96 image, each labeled with the number of their dimension.
You can use it to view which icon sizes are used by which control/components
Attached Files
File Type: zip DemoIcon.zip (540 Bytes, 3542 views)
Feb 8 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Dino M. Buljubasic | last post by:
Hi, I am building deployment project for my vb.net application. The process is pretty much clear except one thing. I'd like to include a folder with icons for my application. How can I do that?...
by: mts | last post by:
First, let me say that I hope I have selected the correct discussion group for these questions. I would like to display the version (major.minor.build) of my project in the final build. I can...
by: QLD_AU | last post by:
Is their a way in a VB.Net application to set all sub form icons to the main form ? or even set all icons to the Application icon, without having to reference the icon as a filename ? With...
by: danipeer | last post by:
Hi, I have a C# application with a toolbar that displays icons on size 32*32. When I change the comoputer display settings to DPI normal size (96%) the icons became invisible. If I change the...
by: TEK | last post by:
Hello I want to add several icons to my dll, so that it can be used by windows to indicate icons for my known filetypes. I'm using VS2005, but I cannot seem to find out how to do this. I can...
by: KW | last post by:
I created custom toolbar icons that look and function similar to the standard MS Access Fill/Back Color and Fill/Fore Color toolbar icons. My custom icons call a function that uses the Terry Kreft...
by: Dave | last post by:
Hello All, These one may be a bit tricky, and what I'd like to do may not even be possible. I would love to hear any ideas you guys have for solving this. Here is the situation: I have a form...
by: Toxinhead | last post by:
Hey there guys I am having a little trouble with InnerHTML as i can't seem to figure out how to set the style of my div tag..... What im trying to do is that when i rollover pic1 it changes that...
by: Ashutosh | last post by:
Hi, I am trying to include icons in my .net exe so that I can select those icons for the shell, like setting the icons of shortcuts, icons for some file types, etc... I tried to include the...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.