This documentation is archived and is not being maintained.
Enables printing an image of a Windows Form at run time.
Microsoft.VisualBasic.PowerPacks (in Microsoft.VisualBasic.PowerPacks.dll)
[ToolboxBitmapAttribute(typeof(PrintForm), L "Microsoft.VisualBasic.PowerPacks.Printing.PrintForm.bmp")]
public ref class PrintForm : public Component
PrintForm component enables you to print an image of a form to a printer, to a print preview window, or to a file at run time. Its behavior replaces that of the PrintForm method in earlier versions of Visual Basic.
The following example shows a common use of the
Dim pf As New PrintForm
pf.Form = Me
pf.PrintAction = PrintToPrinter
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.