I have problem here, How to fix the image to the picture box, My picturebox change it size when loading the image. How to fix this size of image to fix with picturebox scale?
Private Sub ListView3_ItemClick(ByVal item As MSComctlLib.ListItem)
Picture2.PaintPicture LoadPicture(Pesttable.Fields("Gambar")), 0, 0, 200, 200
Exit Sub
error3:
If Err.Number = 481 Then
Dim strImagePath As String
strImagePath = App.Path & "\ancaman padi\NoImage.gif"
Picture2.Picture = LoadPicture(strImagePath)
Exit Sub
End If
I have problem here, How to fix the image to the picture box, My picturebox change it size when loading the image. How to fix this size of image to fix with picturebox scale?
You have the Autosize property set to true, that way the picturebox adjusts to the size of the picture.
Jottum™ XpVistaControls , (transparent) usercontrols for XP, Vista and 7 with W2K legacy support.
My image is larger then the picturebox. So the image only display half..How to resize the image and retain the picturebox size? If I do autosize =true, the picturebox changes it size, I want to retain the picturebox size, just change the image size only to fix with picturebox size
My image is larger then the picturebox. So the image only display half..How to resize the image and retain the picturebox size? If I do autosize =true, the picturebox changes it size, I want to retain the picturebox size, just change the image size only to fix with picturebox size
Unless you need the additional properties a picturebox supplies, why don't you use an Image? It has a Stretch property.
Jottum™ XpVistaControls , (transparent) usercontrols for XP, Vista and 7 with W2K legacy support.