1
Answer

ListBox

Paul Loughridge

Paul Loughridge

15y
2.5k
1
  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)