Re: 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



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.


.



Relevant Pages

  • Re: How to load resorces of a form that is not loaded
    ... But I don't need to update the exe when the exe is already running. ... I have to add the resources at compilation, when I have the resources that I ... picture on a form) using the VB resource editor, ...
    (microsoft.public.vb.general.discussion)
  • Re: Customization of search box
    ... > I have a WSS site that I've been trying to customize the colors/theme. ... > been referencing the resources at www.sharepointcustomization.com My problem ...
    (microsoft.public.sharepoint.windowsservices)
  • Customization of search box
    ... I have a WSS site that I've been trying to customize the colors/theme. ... been referencing the resources at www.sharepointcustomization.com My problem ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: New to Microstation
    ... Should you have questions after referencing the resources available in a number of places, you may want to consider taking advantage ... of useful information regarding them. ... HTH ...
    (comp.cad.microstation)
  • Problem getting designer to create proper code for items in UserControl..
    ... Notice it is referencing a *resources* object but that it doesn't create an entry for that object. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)