![]() |
Visual Basic 6: Printing to a Picture Box
I am trying to print to a picture box on a seperate form.
I enter data in the main form, and submit each record, by pressing on a submit button, which does the calculations and prints details to the picture box, but does not show it right away. After all the records are submitted, I press on a different command button (Generate Report), and it's supposed to print to a picture box in a seperate form. I can't get this to work. Any ideas? Thanks. |
I don't think you can print to a picture box without API. You can however put a label in the pic box and set the backstyle property to transparent and it will look like you are printing to a pic box
HTH kevin |
Why are you trying to put your data into a picture box? Is it text-data? If so, why not use a textbox?
|
to get data from one form to another, here is a way, i hope this leads you in teh right direction
having 2 forms, form1 and form2 from form1, form 2 can be access by asking for it form2.textbox= "stuff" or formx.objectname.objectproperty hope this gets you thinking in the right direction. |
also dont forget about the autoredraw setting if it is not showing up like it should.
|
Quote:
Right now I have: Load frmReport Hide Me frmReport.picReport.Print to print all the calculations that have been done. Hope this is enough information. |
My bad, you can Print to a pic box :o
To see it you need to set the pic box's autoredraw = true kevin |
Thanks for the help guys ... I managed to find the issue.
|
All times are GMT -8. The time now is 04:48 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project