PDA

Click to See Complete Forum and Search --> : App.Path?


mdass
Jul 20th, 2001, 09:57 PM
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.

Serge
Jul 22nd, 2001, 07:07 PM
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.