PictureBox + Print

I have a PictureBox in my vb form.
In the PictureBox,i plot some lines (at run time).
Code example :
Picture1.Line (0, 0)-(20, 5), vbBlue, BF
I got problem when try to print the form.(Me.PrintForm)
The output that shown at the monitor is perfect good,
however when printed out,the contents of the picture box is blank.
It just printed out the border of the PictureBox.
I already set the PictureBox's property autoredraw to true.
Can anybody help me?
Who is Participating?
rspahitzConnect With a Mentor Commented:
Hi boyyle.

Answer below...

Here on Expert's Exchange, it is common coutesy to answer all questions with an "A" grade since you always have an opportunity to respond to the experts until you get an "A" answer!

Also, since the experts put time into helping you, it's nice to respond by closing questions when you've gotten the answer.  If you don't, many experts will not help you in the future.

To ensure that the displayed picture prints, you will need to transfer the image from the image property to the picture property:  picture1.picture = picture1.image
Member Name boyyle
Questions Asked 15
Last 10 Grades Given C A A B C  
Question Grading Record 5 Answers Graded / 5 Answers Received

Please maintain your open questions.  You will find it difficult to find help on current questions when experts see your lack of appreciation for any past help you have received.
boyyleAuthor Commented:
Thanks rspahitz.
For ur solutions on my question and the advices.
Thanks for the "A", and glad to help on both accounts! :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.