Results 1 to 2 of 2

Thread: New User Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Cleveland Ohio
    Posts
    2

    Post

    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?

  2. #2
    Member
    Join Date
    Mar 2000
    Location
    Canada
    Posts
    35

    Post

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width