473,497 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

wired ico

Some small things about ico make me very confused.

I want give my winform app a new icon. I designed it but visual studio
insisted to use the default one. Isn't the icon's format 32 x 32?

2nd, I try to display a small icon for my app at taskbar like the following
codes:

System.Windows.Forms.NotifyIcon notifyIcon1 = new
System.Windows.Forms.NotifyIcon();

notifyIcon1.Icon = new System.Drawing.Icon("app.ico");

Now I don't want to distribute my exe file with app.ico. How can I integrate
it in my app.exe? In other words, I just use my app.exe file only instead of
two files together.

Thanks.
Nov 16 '05 #1
3 2734
You can use a resource file to hold the image and then at runtime, get
the image from the resource file and make it your icon.
Sushant

"Brian" <Br*********@hotmail.com> wrote in message news:<Cs*********************@news20.bellglobal.co m>...
Some small things about ico make me very confused.

I want give my winform app a new icon. I designed it but visual studio
insisted to use the default one. Isn't the icon's format 32 x 32?

2nd, I try to display a small icon for my app at taskbar like the following
codes:

System.Windows.Forms.NotifyIcon notifyIcon1 = new
System.Windows.Forms.NotifyIcon();

notifyIcon1.Icon = new System.Drawing.Icon("app.ico");

Now I don't want to distribute my exe file with app.ico. How can I integrate
it in my app.exe? In other words, I just use my app.exe file only instead of
two files together.

Thanks.

Nov 16 '05 #2
Can you give me a example?
I know how to use resource in Visual Studio (VB, VC), but I don't know how
to use resource files in codes.
I have already created a resource icon file.
"Sushant Bhatia" <su************@gmail.com> ????
news:2c**************************@posting.google.c om...
You can use a resource file to hold the image and then at runtime, get
the image from the resource file and make it your icon.
Sushant

"Brian" <Br*********@hotmail.com> wrote in message

news:<Cs*********************@news20.bellglobal.co m>...
Some small things about ico make me very confused.

I want give my winform app a new icon. I designed it but visual studio
insisted to use the default one. Isn't the icon's format 32 x 32?

2nd, I try to display a small icon for my app at taskbar like the following codes:

System.Windows.Forms.NotifyIcon notifyIcon1 = new
System.Windows.Forms.NotifyIcon();

notifyIcon1.Icon = new System.Drawing.Icon("app.ico");

Now I don't want to distribute my exe file with app.ico. How can I integrate it in my app.exe? In other words, I just use my app.exe file only instead of two files together.

Thanks.

Nov 16 '05 #3
Hi Brian.

Try this link. http://www.c-sharpcorner.com/winform...esourcesCB.asp

It should tell you how to do what your looking for i think.

Sushant.

"Brian" <Br*********@hotmail.com> wrote in message news:<Da*************@news04.bloor.is.net.cable.ro gers.com>...
Can you give me a example?
I know how to use resource in Visual Studio (VB, VC), but I don't know how
to use resource files in codes.
I have already created a resource icon file.
"Sushant Bhatia" <su************@gmail.com> ????
news:2c**************************@posting.google.c om...
You can use a resource file to hold the image and then at runtime, get
the image from the resource file and make it your icon.
Sushant

"Brian" <Br*********@hotmail.com> wrote in message

news:<Cs*********************@news20.bellglobal.co m>...
Some small things about ico make me very confused.

I want give my winform app a new icon. I designed it but visual studio
insisted to use the default one. Isn't the icon's format 32 x 32?

2nd, I try to display a small icon for my app at taskbar like the following codes:

System.Windows.Forms.NotifyIcon notifyIcon1 = new
System.Windows.Forms.NotifyIcon();

notifyIcon1.Icon = new System.Drawing.Icon("app.ico");

Now I don't want to distribute my exe file with app.ico. How can I integrate it in my app.exe? In other words, I just use my app.exe file only instead of two files together.

Thanks.

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1385
by: Zhang Weiwu | last post by:
Hello. I have a question that spining around my head for a long time. I prefer to make this kind of if statement: if (!$GLOBALS) Header( 'Location: '.$GLOBALS-> link('/',...
1
3006
by: Jocab | last post by:
Just had a look at the Wired.com site and it seems it's completely in XHTML and CSS. I don't understand this snippet of code on their homepage, though: <link rel="stylesheet" type="text/css"...
3
1349
by: HTML-JSClub | last post by:
Just asking for opinions on whether I should subscribe to Wired (and why). Thanks
0
1274
by: Anders Borum | last post by:
Hello! I've come across a strange behaviour in ASP.NET. If you're examining the property "HttpContext.Current.Session.IsNewSession" in a Page/UserControl, it always yields true, unless the...
1
1340
by: zl2k | last post by:
hi, all I got a wired bug when using gcc -O2. In short, I have something like int a, b; .... assert(a < b); //line 1 cout<<a<<" "<<b<<endl; //line 2 assert(a < b); //line 3 The program...
2
1311
by: BillE | last post by:
I have a web form which has dynamic controls for order entry, (item selected, #,etc.) which are wired to an event handler which fires when the dynamic controls content changes. These controls...
6
1803
by: dmcglynn | last post by:
Hello all.. I have a strange issue. I am trying to do an opendir via a UNC path, from my windows server to another windows machine. As long as my remote machine is on a physically wired...
2
1078
Ajm113
by: Ajm113 | last post by:
Ok, first off I like to say hi and I am a developer of the Doom3 Scripter project and I wanted to go with C# and Visual Studios for the 2.0 area and I needed some help with both of those things. ...
1
6226
by: ghe | last post by:
Good day, I have this DSL connection which has a dynamic IP address, then I have a new Linksys router(wired), and I had set-up my linksys router through it's web-based “Setup” utility, I had use...
0
1033
by: Terry Reedy | last post by:
from Wired magazine, April 2008 (arrived today), p.44: Expired: ASP.NET; Tired: PHP; Wired: Django Congrats to the Django crew. http://www.djangoproject.com/
0
7120
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
6991
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
7160
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,...
1
6878
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
7373
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
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4583
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
3088
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...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.