This code defines a print dialog box that will appear when a button is clicked. It creates a new PrintDialog object and displays it as a modal dialog window using the ShowDialog() method. The PrintDialog allows the user to select a printer and printing options before initiating a print job.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
26 views1 page
Print Dialog Box
This code defines a print dialog box that will appear when a button is clicked. It creates a new PrintDialog object and displays it as a modal dialog window using the ShowDialog() method. The PrintDialog allows the user to select a printer and printing options before initiating a print job.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
//Print dialog box//
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dlg As New PrintDialog dlg.ShowDialog() End Sub End Class