0

hi,
I want to upload one photo at a time in picture box.... I would like to take input from user..
i have taken one button...by clicking on that button it should open the drives and files window.........after selection that link is stored in textbox.... how that link i can give to the picture box so the picture will apper

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by Jx_Man
0

Add component Microsoft Common Dialog Control 6.0 (SP6).
To open File and show it into picture box:

Private Sub btnBrowse_Click()
CommonDialog1.ShowOpen
txtPath.Text = CommonDialog1.FileName
Picture1.Picture = LoadPicture(txtPath.Text)
End Sub
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.