Share via


PrintForm.OnQueryPageSettings Method (QueryPageSettingsEventArgs)

 

Raises the QueryPageSettings event.

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

Syntax

protected virtual void OnQueryPageSettings(
    QueryPageSettingsEventArgs e
)
protected:
virtual void OnQueryPageSettings(
    QueryPageSettingsEventArgs^ e
)
abstract OnQueryPageSettings : 
        e:QueryPageSettingsEventArgs -> unit
override OnQueryPageSettings : 
        e:QueryPageSettingsEventArgs -> unit
Protected Overridable Sub OnQueryPageSettings (
    e As QueryPageSettingsEventArgs
)

Parameters

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnQueryPageSettings method also enables derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors:

When overriding OnQueryPageSettings in a derived class, make sure to call the OnQueryPageSettings method of the base class so that registered delegates receive the event.

See Also

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