473,435 Members | 1,493 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,435 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 48026
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, 3543 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: 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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.