Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following code example demonstrates how to use the PrintDialog control to set the AllowSomePages, ShowHelp, and properties. To run this example, paste the following code into a form that contains a PrintDialog control named PrintDialog1 and a button named Button1. This example requires that the button's Click event and the PrintPage event of docToPrint have been connected to the event-handling methods defined in this example.
Available since 1.1