PDA

Click to See Complete Forum and Search --> : New User Question


BC
Mar 10th, 2000, 11:50 PM
I created a simple program with the code I learned in class.
It works fine except when I compile it as a .exe it still points to the path on the local drive for the pictures. How do I get the compile to include the pictures?

seanm
Mar 11th, 2000, 12:03 AM
App.Path can be used as a constant to describe the path to your application as in
set picture1.picture = App.Path & "\yourfile"

or, you can either include the picture as a part of the form, or in an imagelist the compile will then include the image.

For instance if you include the image in an imagelist control, you can add it to an image control like:

set Image1.Picture = objects.ListImages(22).Picture

hope that helps.