'please help me about making an image browser in vb 6
'i need to get the path of any image i choose
'and i want to make the imagebox resizeble

Recommended Answers

All 2 Replies

moved

'please help me about making an image browser in vb 6
'i need to get the path of any image i choose
'and i want to make the imagebox resizeble

Sample Code :
Run store procedure to get the path and picutrue name from table, then use getpicture command to show the picture, pls try
++++++++++++++++++++++++++++++++++++++++
objMaster.Cleanup
objMaster.MouldName = "MATERIAL"
objMaster.UniqueID = cboPictNo
objMaster.UniqueCode = nOurItemID
Set objMaster.frmcallform = Me
If objMaster.RetPhoto(True, True) <> 0 Then
Set objMaster = Nothing
MsgBox "Error: Retreive Photo failed!", vbCritical + vbOKOnly, MODULE_TITLE
Exit Sub
End If
If objMaster.rs.EOF = False Then
PictPath = strGraphic_String2 + RTrim(objMaster.rs.Fields("IMAGENAME"))
Else
PictPath = ""
End If
GetPicture Me********************************************************

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.