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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading images

Status
Not open for further replies.

chiuso2

MIS
Feb 22, 2002
58
Hi there
just a question:
i know that i can load a picture into a form with the right mouse button click+insert+image+from file etc.

Is it possible do it via code?
I woud like load a picture from path (c:\windows\pics)
Thank in advance.

Mario from Italy
 
You can assign a new image to the picture box by using
Code:
Image.Picture = LoadPicture("c:\windows\pics\picture.jpg")

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top