I am trying to print a form using this code:
private void btnPrint_Click(object sender, EventArgs e) { Graphics g1 = this.CreateGraphics();
Add:
using System.Drawing.Printing;
and in your code, add:
PrintDocument printDocument1 = new PrintDocument();
More info here