How to load resorces of a form that is not loaded

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.


.



Relevant Pages

  • Load a form (speed)
    ... How i can accelerate the loading a second form. ... Form1 to Form2 i can see a little blinking and slow speed when the Form2 is ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: anchor property for button not working
    ... Now, as you said, I create a form (call it form1) and I add a button ... I feel confused how you can move the button in the design of form2. ... set the postition of the button no matter it is in design time or runtime, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Accessing Controls on Other Forms
    ... I have a windows form (FORM1) and in that I have a Richtextbox control. ... I am loading another form (FORM2) from form 1. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Switching to another form
    ... I've created two forms at design time: Form1 and Form2. ... I'd like to switch to Form2 if a button is clicked on Form1. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Switching to another form
    ... I've created two forms at design time: Form1 and Form2. ... I'd like to switch to Form2 if a button is clicked on Form1. ...
    (microsoft.public.dotnet.framework.windowsforms)