PrintForm Constructor (Form)
Initializes a new instance of the PrintForm class, specifying the Form where it will be parented.
Namespace: Microsoft.VisualBasic.PowerPacks.Printing
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'宣告
Public Sub New ( _
form As Form _
)
public PrintForm(
Form form
)
public:
PrintForm(
Form^ form
)
new :
form:Form -> PrintForm
public function PrintForm(
form : Form
)
Parameters
- form
Type: System.Windows.Forms.Form
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)
pf.PrintAction = PrintToPrinter
pf.Print()
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualBasic.PowerPacks.Printing Namespace
Other Resources
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)