I have problem here. I want to save the image from picture box to my computer. I use common dialog, the filename is extract form text21. But When I change this filename to other filename, It save without extension *.jpg. But If I follow what the filename given, it save with extension *.jpg. How I use recommended filename or my own filename and save it with extension at the end of the filename.
Code:'SAVE pest picture from picturebox to file With CommonDialog2 .fileName = Text21.Text & ".jpg" .Filter = "Image (*.*)|*.*" .ShowSave If Len(.fileName) <> 0 Then SavePicture Picture2.Image, CommonDialog2.fileName MsgBox "File berjaya disimpan di " & CommonDialog2.fileName End If End With




Reply With Quote