* 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
1.8 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| How to display the PrintDialog component | 03/30/2017 |
|
745a8db7-0526-4b21-b09d-18e13ed32014 |
How to display the PrintDialog component
The xref:System.Windows.Forms.PrintDialog component is the standard Windows print dialog box that many of your users will be familiar with. Because your users will be immediately comfortable with it, it would be beneficial for you to use the xref:System.Windows.Forms.PrintDialog component.
To display the PrintDialog component
-
Call the xref:System.Windows.Forms.Form.ShowDialog%2A method from within the code of your application.
Once the component is shown, users will interact with it, setting the properties of the print job. These are saved in the xref:System.Drawing.Printing.PrinterSettings class (and the xref:System.Drawing.Printing.PageSettings class, if the user accesses the PageSetupDialog Component through the xref:System.Windows.Forms.PrintDialog component) associated with that print job. You can then make calls to the properties they set to determine the specifics of the print job.