Print To a Picturebox with VB.NET

Category:
C#, VB.NET, ASP.NET
Type:
Classes
Difficulty:
Intermediate
Author:
Donald Joyce

Version Compatibility: Visual Basic.NET

More information:
I have found sample code to print to a PictureBox control, but the sample code always wiped the picture when printing to it. So I have used a few lines from the sample, and wrote a class to continually print on a line or add a new line when necessary.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: