jrdevitto Level: Guest

|
Question about printing Forms and Picture Boxes
I have seen examples of how to print Forms or Picture Boxes, but what about printing all contents of a Form including a Picture Box and its contents that are also part of the Form.
For example in my VB project, I have a Form that contains a Picture Box. As a result of certain values the user supplies the form and after clicking the appropriate button, a shape appears in the Picture Box (keep in mind the Picture Box is an object on the Form).
This is all fine and dandy until you try to print the Form along with the shape that has been rendered in the Picture Box. Currently, the Form and all the other controls (i.e. buttons, text boxes, labels, etc) will show up on the print output, but the shape that was rendered in the Picture Box will not print. All that prints is the outline of the Picture Box (i.e. you get a blank Picture Box on the print output).
Does anyone know how to code a print Form routine so that if the Form contains a Picture Box that was rendered as a result of user action, the entire Form (including the renedered Picture Box) will print?
Thanks for any help you can provide!
JRD
|