By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,107 Members | 1,173 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,107 IT Pros & Developers. It's quick & easy.

Adding icons in resource file

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.