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

Home Posts Topics Members FAQ

Adding icons in resource file

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, and at runtime
I want to be able to add more icons as I need to add. I don't want
to use an imagelist because that will be a set number of icons in the
program.
Thanks

John
Mar 23 '08 #1
1 2671
On Sun, 23 Mar 2008 13:06:24 -0700, John <jo************@aol.comwrote:
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?
No, not really. Your executable file is not writeable while it's running,
and so you can't modify it by adding new resources.
I want to store a bunch of icons into a resource file, and at runtime
I want to be able to add more icons as I need to add. I don't want
to use an imagelist because that will be a set number of icons in the
program.
If there's "a set number of icons in the program", why do you want to add
more icons? Seems to me, by definition there's not a set number. The
number can change according to how many you add. (Not that using an
ImageList would change the fact that you can't modify the resources in
your executable while your executable is running, but still...)

You'll simply need to include some mechanism for storing the additional
icons elsewhere.

Pete
Mar 23 '08 #2

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

Similar topics

3
by: Kyaw Soe Lin | last post by:
Dear all, I am developing a project using VB.NET. I would like to add icons in the resource file like VB6 to use with my buttons. But I can't find how to add resource file in VB.NET and how...
5
by: Eric | last post by:
I want to use embedded icon resources for my file type associations, but only the app.ico seems to show up when I go to choose the icons in the setup File Types editor. The same thing when I try...
3
by: SlasherStanley | last post by:
I have wrote a c# app and included the default app.ico file and then compliled it. When I create a shortcut to the application on the destop, I would like the option of selecting from a choice...
3
by: J.Marsch | last post by:
Hello all: I am trying to build a resource dll that will house icons, and I'm afraid that I'm not having much luck reading it. Can you lend hand (or just point me to a good primer). Here's...
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...
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...
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...
3
by: =?Utf-8?B?R2lkaQ==?= | last post by:
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...
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
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
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,...
1
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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 ...
0
muto222
php
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.