Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print picturebox

Status
Not open for further replies.

geethanandh

Programmer
Jun 5, 2002
21
0
0
US
hello
i had drawn few lines and boxes in a picturebox. when i try to print that form the lines and boxes drawn inside the picturebox is not printed.
What to do to print the contents of the pisturebox?
I had tried this also
printer.paintpicture picture1.picture,0,0
but it has no effect

geethanandh
 

check to see if your autoredraw property is set to true
else you can use

SavePicture Picture1.Image, "C:\test.bmp"

then reload the bmp and use your code as stated
 
hi vb5prgrmr
Thanks for ur help. i have some labels on the picturebox, if i save it as image file those labels are not saved in the image file. i want those label values also to be stored in the image in file.

bye
geethanandh
 

Then you will have do a screen capture of the picture box. I do not know the thread right off hand but I know one of the regulars on this board should be able to point you in the right direction.
 
I've never done this, but I think under the FILE
menu, you can specify PRINT, then under print, it offers
you a choice of printing the code or the object. If one
choses object, it may print what you see.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top