CodePudding user response:
What this code which you pictureboxSave the clipboard data, you don't know from which to copy the code, did not even read function, if not at least in English translation the meaning of the object which you use ,
If you want to save the picturebox pictures, clear picturebox object name, such as Picture1, then find out what you want to save is drawings (image attributes) or your background image (picture),
Such as:
Private Sub Form_Load ()
Picture1. AutoSize=True
Picture1. AutoRedraw=True
Picture1. Cls
The Set Picture1. Picture=LoadPicture (" D: \ test. BMP ")
Picture1. Line (0, 0) - (Picture1. ScaleWidth, Picture1. ScaleHeight), 255
Picture1. Line (Picture1. ScaleWidth, 0) - (0, Picture1. ScaleHeight), 255
SavePicture Picture1. Image, "D: \ Image. BMP"
SavePicture Picture1. Picture, "D: \ Picture. BMP"
End Sub