-
a simple question
If I have a image in a picture box NOT loaded with Picture1.picture = Loadpicture("C:\Directory\Filename.bmp") I loaded the picture from the propierties of the picture box how can i save the image to a disk with other name?
Here my code :
Private sub Command1_Click
Picture1.Picture = Picture1.Image
SavePicture Picture1.Image, "C.\Windows\Escritorio\PRUEBA.bmp"
End sub
But when I click the Command Button I got the message
"Path not found"
How can I do that??
Thanks
Wolverine
-
Try another directory when saving.
I believe that it cannot save to a directory that doesn't exist.
-
I don't know if you already noticed it but you typed:
C.\
Guess what this should be, C:\ maybe? :D
-
Use:
[code]
Private Sub Command1_Click()
Picture1.Picture = Picture1.Image
MkDir "C:\Windows\Escritorio\PRUEBA.bmp"
SavePicture Picture1.Image, "C:\Windows\Escritorio\PRUEBA.bmp"
End Sub
-
Use:
Code:
Private Sub Command1_Click()
Picture1.Picture = Picture1.Image
MkDir "C:\Windows\Escritorio\PRUEBA.bmp"
SavePicture Picture1.Image, "C:\Windows\Escritorio\PRUEBA.bmp"
End Sub