private void Form1_Load(object sender,
  System.EventArgs e)
{
  // See if any printers are installed
  if( PrinterSettings.InstalledPrinters.Count <= 0)
  {
    MessageBox.Show("Printer not found!");
    return;
  }

  // Get all available printers and add them to the
  // combo box
  foreach(String printer in
    PrinterSettings.InstalledPrinters)
  {
    printersList.Items.Add(printer.ToString());
  }

}

+ Recent posts