473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Icon Trouble in C#

30
I am having 2 seperate concerns regarding icons in C#.NET 2003

I have an icon that I created in VS. Easily enough I can attach this to a form or system tray object, etc. But if I take the icon and attach it to the system tray icon, it shows up just fine. But the (same) icon I attach to the form doesn't show up correctly, instead looking like the default icon picture. Any idea why this would happen?

Secondly, how does one attach an icon to the .exe? I'm using the installer in .NET to install my program but I don't see a place for the icon.

Thanks.
Sep 19 '07 #1
2 1025
Plater
7,872 Expert 4TB
You are in luck, as I have done a bunch of work figuring out the icon stuff. (Since it's not intuitive)
I wrote an article about it:
http://www.thescripts.com/forum/thread648181.html

The article is pretty poorly written though (sorry!).

The basic thing to know is that when you create an icon in VS it starts out with TWO images stored in it. One is like 16x16 and the other is 32x32 (or 64x64 I forget) And editing one does not effect the other.
So while you made this nice icon in say the "32x32" size, the 16x16 is still the default picture. You can switch to it by right-clicking on the image preview on the left side of the image editor.

To attach the icon to an exe, the "program icon", you need to go to thr project properties and find the icon place where you can list it.
Sep 19 '07 #2
ewokspy
30
My search fu was obviously weak this time around.

Thank you, that solved all of my icon problems. :D
Sep 19 '07 #3

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

Similar topics

2
by: bob | last post by:
I'm trying to change the icon in the corner of my window, and I'm having trouble. I'm using Dev-C++, and I noticed it created this .RC file for me when I specified that I wanted to use a "Game"...
4
by: yaipa | last post by:
All, I've been asked by my boss to put an Icon in WinXP's "My Computer" for a utility we use around the shop. My tool of choice is of course Python and therefore what I am using to attempt my...
5
by: yxq | last post by:
Hello The icons with the alpha channel are supported in WindowsXP. If use the System.Drawing.Bitmap.ToBitmap on the icon handle(ico.ToBitmap), the alpha channel won't be preserved, resulting in an...
3
by: EricJ | last post by:
Hi I'm having trouble getting icons from an imagelist in a statusbar panel. if i load the icons directly it works Dim ico As new Icon("W95MBX03.ICO") statusbarPanel..Icon = ico but if i try...
7
by: Benny Raymond | last post by:
I searched for a couple hours lastnight on example code of how to go about making an item in the System Tray (notification area) not be square. I've found several programs that do this but I can't...
4
by: randy1200 | last post by:
I have a Windows application that previously had the company logo "MyCompany.ico" added to the upper left-most corner. The company has since issued a new version of "MyCompany.ico" that looks...
3
by: Mark | last post by:
Hi I'm using vb.Net in VS2005 and want to extract the icon for file refence records. I saw an example a while back that searched the registry for the default icon etc. It was a little long...
5
by: wajedali | last post by:
Hi I am having trouble rendering a combo box with icon near the text. Below is a simple code which demonstrates my problem. import java.awt.Component; import java.util.HashMap; import...
1
by: Perl Beginner | last post by:
Hello all, I have created a GUI box using Win32::GUI::Window and all i want to do is add a question mark icon in the window on the left, but i'm having trouble figuring that out. i know that using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.