Results 1 to 2 of 2

Thread: App.Path?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    In this world
    Posts
    7

    App.Path?

    Hi.

    I created a form. It has a background picture called 'splash.jpg'.
    I didn't use the picture box control to display the 'splash.jpg', I used the form's picture property instead.

    Ok, my application is in folder 'XnO' in drive E and splash.jpg is in
    'XnO\XnOImages' in the same drive.

    I've heard that App.Path allows flexibility. As long as the application components (graphics, data files etc) are in the same directory, my program should run smoothly.

    How do I use the App.Path to display the 'splash.jpg' without using the form's picture property?

    The reason I want to do this is because I plan to allow user of my application to change the background image. All these images are stored in 'XnO\XnOImages' in drive E.


    Thanks.
    Regards,
    md.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    I would suggest using a resource file with your image loaded there. Then within a run of your app, load the image as a background of your form.

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