473,388 Members | 1,355 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,388 developers and data experts.

C#: Setting Icons

Plater
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 48016
Plater
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

1
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?...
0
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...
3
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...
0
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...
4
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...
0
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...
7
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...
8
Toxinhead
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...
2
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...
0
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,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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.