Compartilhar via


PrintForm.BeginPrint Event

Occurs when the Print method is called, before the first page of the document prints.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Event BeginPrint As PrintEventHandler
[BrowsableAttribute(false)]
public event PrintEventHandler BeginPrint
[BrowsableAttribute(false)]
public:
 event PrintEventHandler^ BeginPrint {
    void add (PrintEventHandler^ value);
    void remove (PrintEventHandler^ value);
}
[<BrowsableAttribute(false)>]
member BeginPrint : IEvent<PrintEventHandler,
    PrintEventArgs>
JScript does not support events.

Remarks

The BeginPrint event handler is typically used to perform any tasks that need to be accomplished before printing.

.NET Framework Security

See Also

Reference

PrintForm Class

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)