Hello --
When using the PrintForm component in VB.Net 2010 I would like to change the back color of the form from black to white just prior to printing to preview. Then once the print preview window is closed the back color returns to black. Here is the code I am using to print to preview
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print()
End Sub
Here is a variation of what I tried:
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
Me.BackColor = Color.White
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print()
Me.BackColor = Color.Black
End Sub
Any help would be greatly appreciated.
Thank you!