Re: How to load resorces of a form that is not loaded
- From: "Eduardo" <mm@xxxxxx>
- Date: Tue, 7 Oct 2008 00:39:57 -0300
Hello Randy,
"Randy Birch" <rgb_removethis@xxxxxxxx> escribió en el mensaje
news:uwNAAfCKJHA.1160@xxxxxxxxxxxxxxxxxxxxxxx
If the resources are added to the *project* (not to a form or to a picture
on a form) using the VB resource editor, you can reference those from
anywhere within your application to display as required wherever you want.
But as you've discovered, images etc. that are part of a form (e.g., in a
picture, or a set of icons in an imagelist) are not "resources" (in the C
meaning of the word) but are rather integrated throughout the compiled
exe. Referencing those is impossible without loading the form the picture
is contained on, then referencing the picture.
And is there any way to add resources dynamically _by code_ (not with a
resource file) at compilation?
I don't care if they are stored as standard resources or like the forms
does, embedded somehow in the exe, as long as I can access then later at any
time when the exe is compiled.
Note: I need to do that from an ocx to the host program, not from the exe
project itself.
Thanks.
.
- Follow-Ups:
- Re: How to load resorces of a form that is not loaded
- From: Schmidt
- Re: How to load resorces of a form that is not loaded
- From: Randy Birch
- Re: How to load resorces of a form that is not loaded
- References:
- How to load resorces of a form that is not loaded
- From: Eduardo
- Re: How to load resorces of a form that is not loaded
- From: Randy Birch
- How to load resorces of a form that is not loaded
- Prev by Date: Re: How to load resorces of a form that is not loaded
- Next by Date: Re: Add (first) menu items at runtime, then (second) subitems to newly create items
- Previous by thread: Re: How to load resorces of a form that is not loaded
- Next by thread: Re: How to load resorces of a form that is not loaded
- Index(es):
Relevant Pages
|