ok.. i think you dont want to use commondialog control for saving image.. heres another way, i hope this will solve your problem
This code is working but make sure that filename that you will input in textbox must have a valid path and valid image format.
Private Sub cmdBrowsePicture_Click()
Me.CommonDialog1.Filter = "JPEG File (*.jpg)|*.jpg"
Me.CommonDialog1.ShowOpen
Me.Image1.Picture = LoadPicture(CommonDialog1.Filename)
End Sub
Private Sub cmdSavePicture_Click()
Call SavePicture(Image1.Picture, Text1.Text)
End Sub
Note:
Text1.Text= is your new filename consist of (Directory,Foldername,Filename,and file extention/format)
e.g. Text1.text="C:\MyPhoto\myPicture.jpg"
SavePicture is a visual basic Keyword
Enter your message below
Sign in or Join us (it's free).