i have an application that am adding a print option in the menu strip. i want the application to be able to print everything on the form when i hit print. right now it only prints whats displayed on the screen but i want to print everything thats displayed. Here is the code i have have. it only allows me to print whats displayed and scroll down to print more. any help on how to print everything on the form is much appreciated.
Code:
Private Sub PrintPageToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintPageToolStripMenuItem.Click
Dim settings As New System.Drawing.Printing.PrinterSettings
PrintForm1.PrinterSettings = settings
settings.DefaultPageSettings.Landscape = True
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
end sub