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