473,471 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

adding Icons as a part of my project and use them

Hi,

In my application i'm using two different icons which being displayed in
different occasions. how can i add this Icons to my project, so when i'll
bring my exe file to another machine, the project will recognize these icons?

and after doing it, how can i use them in my project?

Thanks,
Gidi.
Jul 16 '08 #1
3 1485
Hello,

You need to embed them as resources...

This might help: http://support.microsoft.com/kb/319292

Leo
"Gidi" <sh*****@hotmail.com.dontspamwrote in message
news:26**********************************@microsof t.com...
Hi,

In my application i'm using two different icons which being displayed in
different occasions. how can i add this Icons to my project, so when i'll
bring my exe file to another machine, the project will recognize these
icons?

and after doing it, how can i use them in my project?

Thanks,
Gidi.
Jul 16 '08 #2
On Jul 16, 10:09*am, Gidi <shna...@hotmail.com.dontspamwrote:
Hi,

In my application i'm using two different icons which being displayed in
different occasions. how can i add this Icons to my project, so when i'll
bring my exe file to another machine, the project will recognize these icons?

and after doing it, how can i use them in my project?

Thanks,
Gidi.
you can add them as embedded resources (I think it's the default)
but what you want to do with them? where r u going to use them?
Jul 16 '08 #3
Hi,

Thanks,

i read the article, did all the steps, and now my icon files are Embedded
Resource, but i can't understand how do i call them and set them as an images.

can you assist?

Thanks,
Gidi,

"Stanimir Stoyanov" wrote:
You can include the icons as manifest resources in your project and then
acquire a stream of them instead of loading them from hard-coded paths. You
might find the following article helpful:
http://www.devx.com/dotnet/Article/10831/1954.

Best Regards,
Stanimir Stoyanov | www.stoyanoff.info

"Gidi" <sh*****@hotmail.com.dontspamwrote in message
news:26**********************************@microsof t.com...
Hi,

In my application i'm using two different icons which being displayed in
different occasions. how can i add this Icons to my project, so when i'll
bring my exe file to another machine, the project will recognize these
icons?

and after doing it, how can i use them in my project?

Thanks,
Gidi.
Jul 17 '08 #4

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

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?...
7
by: axis | last post by:
What I want to do is pretty simple: I have a bunch of icons in my application project (visual studio .net 2003), and I want to embed those in the executable, and access them through code. I've...
7
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
0
by: Andre Viens | last post by:
Hello, I am using the following variation of code from <http://support.microsoft.com/default.aspx?scid=kb;EN-US;319340> to add icons to an imagelist for use in a listview: Private Structure...
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...
2
by: SharpCoderMP | last post by:
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a...
3
by: Jeff Jarrell | last post by:
We are migrating a large app to .net. There are many forms and there will be many, many icons. What are some suggested techniques for more or less sharing imagelists (easy enough), BUT without...
1
by: John | last post by:
Is there such a thing as storing icons or bitmaps into a resource file, and adding more icons or bitmaps into the resource file at runtime? I want to store a bunch of icons into a resource file,...
2
by: bahnfire | last post by:
Hi, I am hoping that I finally have the right group :-) I am using Visual C++ Express 2008 and am trying to change the taskbar icon that I am using (notifyIcon1) as some state changes (button...
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,...
1
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
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
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: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.