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);
}
}