Paul Loughridge

Paul Loughridge

  • NA
  • 109
  • 44.6k

ListBox

Jun 4 2009 7:45 PM
  private void btnGetPrinterResolution_Click(object sender, EventArgs e)
        {

            PrinterSettings ps = new PrinterSettings();
            ps.PrinterName = PrintersList.Text;

            PrinterResolution prs3 = new PrinterResolution();
            
            foreach (PrinterResolution pr in ps.PrinterResolutions)
            {                          
                string str = prs3.ToString();
                listboxPrinterResolution.Text = str;

               // MessageBox.Show(str);                    
            }
        }

Answers (1)