3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by ivy
0

'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********************************************************

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.