3
Contributors
3
Replies
5
Views
9 Years
Discussion Span
Last Post by Jx_Man
0

HI PranavDV,

Kindly depict some more details about your need, furnish the details exactly what you what to get there, then only people can help you
in normal case

Place the Photo's of the Persons in a folder with their name
get a name(personname) in textbox
display the corresponding pictute in the picturebox through checking out and fron a filelist box,

The above is only a algorithm, if you can't implement then dont hesitate to contact me,

With regards
Venkatramasamy SN

0

hello,
with the information of person through different fields like name, address, mobile etc
i want to show his/her photograph either through picture box or through image box.

my requirement is that as i click on picture box or image box it will ask to browse that image and as i select that image it shows me in that box

help me on this

0

so, u want to show image/photos on image or picturebox then when u click that control you will browse image to show, right? if i didn't wrong in understand your post, this is code for showing image..
add microsoft common dialog 6.0 control on add componet. use common dialog on your form.

Private Sub Image1_Click()
With CommonDialog1
            '.InitialDirectory = "C:\"
            .Filter = "All Files|*.*|Bitmaps|*.bmp|GIFs|*.gif|JPEGs|*.jpg"
            .FilterIndex = 4
End With
CommonDialog1.ShowOpen
Image1.Stretch = True
Image1.BorderStyle = 1
Image1.Picture = LoadPicture(CommonDialog1.FileName)
lblFilePath.Caption = CommonDialog1.FileName
End Sub

filter index to set image extension when first open dialog shown.
lblFilePath just for showing file path, if u dont like it to shown you can remove it.

OK.give feedback

This topic has been dead for over six months. 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.