Re: Packaging Image Files in the Installer

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

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 07/12/04


Date: 12 Jul 2004 16:07:14 +0200


* "jcrouse" <me> scripsit:
> Currently this is the way I have things setup. I have an installer in my
> project. I added a folder to the installer package and added all of the
> image files to the installer package folder. I the declare the in the code
> and then call them.
>
> Dim myImage as New Bitmap(Application.StartupPath & "\Images")
> PictureBox.Image = myImage
>
> When I embed the in the executable and then remove them for the installer
> package folder, how do I then reference them in my code? Also, should they
> be disposed of when the form is closed and the image is no longer being
> used. I'm talking about fifty or sixty images here and am concerned with
> system resource usage.

If you load them like I load the images in the sample I posted in the
previous message, you can/should dispose the images when you don't need
them any more.

> On a side note. I also have my icon files and banner images for the
> installer package in the same above mentioned folder. How do I embed them.

I don't know that.

-- 
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Relevant Pages