PrintControllerWithStatusDialog Class

Controls how a document is printed.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

public class PrintControllerWithStatusDialog : PrintController
public class PrintControllerWithStatusDialog extends PrintController
public class PrintControllerWithStatusDialog extends PrintController

This class implements a PrintController and adds a status dialog. A print controller specifies how a PrintDocument is printed.

For a list of initial property values for an instance of the PrintControllerWithStatusDialog class, see the PrintControllerWithStatusDialog constructor.

The following code example shows how to create a new PrintController and assign it to the PrintController property. The example assumes that you have added the System.Drawing.Printing namespace to the class and that you have created a new instance of a PrintDocument as myDocumentPrinter.

void myPrint() {
   if (useMyPrintController==true) {
      myDocumentPrinter.PrintController = new myControllerImplementation();     
      if (wantsStatusDialog==true) {
         myDocumentPrinter.PrintController =
           new PrintControllerWithStatusDialog(myDocumentPrinter.PrintController);

void MyPrint()
    if (useMyPrintController == true) {
            (new MyControllerImplementation());

        if (wantsStatusDialog == true) {
                (new PrintControllerWithStatusDialog
} //MyPrint


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions