View Single Post
Old May 20th, 2006, 3:26 PM   #2
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 330
Rep Power: 3 kruptof is on a distinguished road
Try this:
Quote:
OpenDialog.ShowOpen
Form1.Caption = OpenDialog.FileName
Picture1.Picture = LoadPicture(OpenDialog.FileName)
you have to use the open dialog or if you want you can create your own one. then you just set the picture property(picture1.picture) to that they have selected from the open dialog and then pass that to loadpicture function, you can improve this by filter out other files such as text files and other non image files from the user in the open dialog box.
kruptof is offline   Reply With Quote