My problem is the same as mentioned here: thread222-98810 . When the picturebox is saved, it saves a blank image.
I have a form containing a picturebox which has other objects (textboxes, a frame, labels, and lines) contained within it. I want users to move the textboxes to any location within the picturebox (this works perfectly). I want the users to be able to save the contents in the picturebox as an image (it saves, but as a blank image and all objects are left off).
I am using this command: SavePicture picturebox.Image, "c:\myTestPicture.bmp"
What get saves is a blank image...the objects mentioned above do not get saved within the image.
I did a test and I placed code on the form allowing me to draw a line on the picturebox. When I save it using the SavePicture command, the lines drawn at runtime actually get saved within the image...but the objects (textboxes and so on) do not.
I completed a search within this forum, and researched all entries about pictureboxes and bitmaps, and there is no answer to my problem.
Please let me know what I am doing wrong....
Thanks in advance!
I have a form containing a picturebox which has other objects (textboxes, a frame, labels, and lines) contained within it. I want users to move the textboxes to any location within the picturebox (this works perfectly). I want the users to be able to save the contents in the picturebox as an image (it saves, but as a blank image and all objects are left off).
I am using this command: SavePicture picturebox.Image, "c:\myTestPicture.bmp"
What get saves is a blank image...the objects mentioned above do not get saved within the image.
I did a test and I placed code on the form allowing me to draw a line on the picturebox. When I save it using the SavePicture command, the lines drawn at runtime actually get saved within the image...but the objects (textboxes and so on) do not.
I completed a search within this forum, and researched all entries about pictureboxes and bitmaps, and there is no answer to my problem.
Please let me know what I am doing wrong....
Thanks in advance!