I have been developing a program and am now trying to save its contents. What i have is a picturebox with several things inside of it including textboxes, and other pictureboxes. All i want to do is save the main picturebox along with all of the other stuff inside of it to a .bmp or a .jpg. I have tried all the normal things but nothing inside the picture box is saved. Does anyone have any thoughts on that? The file is physically created, however it does not contain the contents of the picturebox, only the border of the picturebox.
This is my current code:
SavePicture frmImage3.Picture1.Image, CommonDialog1.filename
I also tried
SavePicture frmImage3.Picture1.Picture, CommonDialog1.filename
and ive also tried changing the AutoRedraw function. However none of these work properly.. i get the same results each time.
Thanks in advance.




Reply With Quote