Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/printdialog-component-overview-windows-forms.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.7 KiB

title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
title ms.date f1_keywords helpviewer_keywords ms.assetid
PrintDialog Component Overview 03/30/2017
PrintDialog
Print dialog box [Windows Forms], displaying
PrintDialog component [Windows Forms], about PrintDialog component
8327b8ac-1017-4b5e-a88b-fea9dd56999c

PrintDialog Component Overview (Windows Forms)

The Windows Forms PrintDialog component is a pre-configured dialog box used to select a printer, choose the pages to print, and determine other print-related settings in Windows-based applications. Use it as a simple solution for printer and print-related settings selection in lieu of configuring your own dialog box. You can enable users to print many parts of their documents: print all, print a selected page range, or print a selection. By relying on standard Windows dialog boxes, you create applications whose basic functionality is immediately familiar to users. The xref:System.Windows.Forms.PrintDialog component inherits from the xref:System.Windows.Forms.CommonDialog class.

Working with the Component

Use the xref:System.Windows.Forms.CommonDialog.ShowDialog%2A method to display the dialog box at run time. This component has properties that relate to either a single print job (xref:System.Drawing.Printing.PrintDocument class) or the settings of an individual printer (xref:System.Drawing.Printing.PrinterSettings class). Either of these, in turn, may be shared by multiple printers.

When it is added to a form, the xref:System.Windows.Forms.PrintDialog component appears in the tray at the bottom of the Windows Forms Designer in Visual Studio.

See also