Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Feb 22, 2001
Messages
42
Location
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?
 
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