Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pictures on Splash Screen

Status
Not open for further replies.

Rednyx

Civil/Environmental
Feb 22, 2001
42
JP
Ive Designed a Splash form for my programe. The Splash form contains a picture which i took from my hard drive, and thus mentioned the path of it. I want to use the Programme on other computers too with the splash sreen containing the Picture. Is there a way to do this?
 
Replies continue below

Recommended for you

Hi,

Do you load the file when the splash screen is loaded ?.

Why not just insert a picture box onto your form and set the Picture property to the image you want. There is no longer any need to have the the orignal image on your or any other harddrive as it is imbeded into the exe file.

Any help ?, yes no let me know.

Regards
 
Rednyx,

An easy way is to copy the image to the folder in which your .exe file resides. You can then determine the path name by the expression App.Path. For example, if your image file name is 11.jpg, you can use
LoadPicture(App.Path + "\11.jpg")

Sajith.
 
One more thing.
You can use App.Path only at run time. This is not available at design time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top