Re: How to load resorces of a form that is not loaded
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Mon, 6 Oct 2008 22:52:32 -0400
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.
--
Randy
ms mvp - visual basic
http://vbnet.mvps.org/
"Eduardo" <mm@xxxxxx> wrote in message news:gce43l$3bq$1@xxxxxxxxxxx
I want to load the resources of a form without loading the form.
For example: The project has two forms: Form1 and Form2. Form1 is the
startup form.
Form2 has a picturebox with an image loaded in its Picture property.
At design time the data of that image is stored in the Form2.frx file. At
runtime it is stored in the exe file.
The project run, Form1 is loaded (but form2 isn't). I want to be able to load in Form1 (may be in another picturebox that is in Form1) the image of Form2.Picture1.Picture without loading Form2.
At least, I want to do that when the program is compiled. At design time I could manage my situation in another way. If can can do that at run time and also at design time, the better.
Why I need that? I'll explain it later, or you can read this discussion here:
http://tinyurl.com/3kccaw
Thanks.
.
- Follow-Ups:
- Re: 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
- References:
- How to load resorces of a form that is not loaded
- From: Eduardo
- How to load resorces of a form that is not loaded
- Prev by Date: Re: Double quote issue with VB6, Access and text files
- Next by Date: Re: How to load resorces of a form that is not loaded
- 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
|