SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Invokes the Print Setup dialog.
VB.NET | object.PrinterSetup(ByVal Handle As Integer) |
VB | object.PrinterSetup(ByVal Handle As Long) |
C#.NET | void object.PrinterSetup(int Handle); |
VC++ | HRESULT object->PrinterSetup(long Handle); |
C | HRESULT object->raw_PrinterSetup(long Handle); |
object
Handle
The window handle of the application's main window, which serves as the parent window for the Print Setup dialog. If 0 is specified, the application's main window is determined automatically.
The PrinterSetup method invokes the Print Setup dialog.
If the user modifies printer settings, the PrinterChanged even occurs.
MenuViewRichEdit_Click(Me, New System.EventArgs()) End Sub Private Sub MenuPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuPrint.Click AxSftPrintPreview1.PrintContents(True, 0, False) End Sub Private Sub MenuPrintSetup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuPrintSetup.Click AxSftPrintPreview1.PrinterSetup(0) End Sub
RichTextBox1.SetFocus End Sub Private Sub PrintDirect_Click() SftPrintPreview1.PrintContents True, 0, False End Sub Private Sub PrintSetup_Click() SftPrintPreview1.PrinterSetup 0 End Sub
private void menuPrint_Click(object sender, System.EventArgs e) { axSftPrintPreview1.PrintContents(true, 0, false); } private void menuprintSetup_Click(object sender, System.EventArgs e) { axSftPrintPreview1.PrinterSetup(0); }
See Also SftPrintPreview Object | Object Hierarchy