|
-
Mar 23rd, 2002, 06:53 PM
#1
Thread Starter
Member
Leting a user browse for a file?
How do I create a program that lets a user of the program browse for a picturefile on his/her hardrive then display it in a picture box using a command button to display the file?
I have a picture box named "picshowdisplay"
a command named "cmd1"
and a directory list box named "selectfile"
This is what I had code wise.....
Private Sub cmd1_click
If selectfile.showdialog = dialogresult.ok then
' load picture into picturebox
picshowdisplay.image= image.fromfile(selectfile.filename)
end if
endsub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|