Copying and Printing a PictureBox
Hi All,
Got a difficult one for you.
I have a form with 2 picture boxes. PictureBox1 is inside PictureBox2. PictureBox2 is used for scrolling. Inside PictureBox1, I have multiple control arrays, which are determined once the user has entered all players for a particular event. These arrays can grow as large as 512 or more. Anyway, once the arrays are loaded, made visible, PictureBox1 is 3, 4 maybe even 10 screens long, and 3,4 maybe 5 screens wide. I can scroll all through it no problem.
What I want to do is copy all the contents of PictureBox1 to a BMP, then print it. I'm currently trying to use the bitblt code I found on another forum and also in the Microsoft Knowledge Base.
Problem Is:
It will on copy what is visible on the screen. It creates a BMP which is the correct size, and if I scroll down, then do the copy, it places it in the correct spot in the BMP, but the rest of the BMP is black.
Any Ideas?
Thanks in advance.
Kevin
dartcoach
__________________
dartcoach
|