may friend already use that code....wat i mean is that i will be using the image box to show up the picture but i also need to have a button that can search inside the computer like the button "browser"...can you help me to have that kind of code
'Add reference to "Microsoft Commond Dialog Control"
'Draw a Common Dialog onto the form
'Draw an image control onto the form
Private Sub Command1_Click()
On Error GoTo Errmsg
With CommonDialog1
.Filter = "All images|*.jpg;*.bmp|All File|*.*"
.CancelError = True
.ShowOpen
End With
Image1.Picture = LoadPicture(CommonDialog1.FileName)
Exit Sub
Errmsg:
If Err.Number = cdlCancel Then Exit Sub
MsgBox Err.Description
End Sub
How about if i'll be using the picture box to show up the picture and thesame way i'll be using also a button that can search inside the computer like the button browser......