PrintForm Constructor (IContainer)

 

Initializes a new instance of the PrintForm class, specifying the IContainer in which it will be parented.

Namespace:   Microsoft.VisualBasic.PowerPacks.Printing
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

public PrintForm(
    IContainer container
)
public:
PrintForm(
    IContainer^ container
)
new : 
        container:IContainer -> PrintForm
Public Sub New (
    container As IContainer
)

Parameters

Remarks

A PrintForm component created at run time has no visual representation.

Examples

The following example shows a common use of the PrintForm component.

Dim pf As New PrintForm(Me.components)
pf.PrintAction = PrintToPrinter
pf.Print()

See Also

PrintForm Overload
PrintForm Class
Microsoft.VisualBasic.PowerPacks.Printing Namespace
PrintForm Component (Visual Basic)
How to: Print a Form by Using the PrintForm Component (Visual Basic)
How to: Print the Client Area of a Form (Visual Basic)
How to: Print Client and Non-Client Areas of a Form (Visual Basic)
How to: Print a Scrollable Form (Visual Basic)
Deploying Applications That Reference the PrintForm Component (Visual Basic)

Return to top