title: How to hide or disable a printer in C# printer dialog?
body: <p>There are 3 printers in the printer list, but is there a way to hide or disable one of them when I call the printdialog? For example, how to disable or hide the printers which names start with &quot;Brother MFC&quot;, so that only allows users to select &quot;HP&quot; printers?</p>
  <pre><code>    PrintDialog printDlg = newPrintDialog();  
      PrintDocument printDoc = newPrintDocument();  
      printDoc.DocumentName = &quot;Print Document&quot;;  
      printDlg.Document = printDoc;  
      printDlg.AllowSelection = true;  
      printDlg.AllowSomePages = true;  
      //Call ShowDialog  
      if (printDlg.ShowDialog() == DialogResult.OK) printDoc.Print();  
  </code></pre>