T
trint
I want it to go to another winform when I select from the combobox.
I tried this with a populated combobox:
private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
{
if (comboBox1.SelectedIndex != -1)
{
PrintDocument printDoc = new PrintDocument();
printDoc.DefaultPageSettings.PaperSource =
printDoc.PrinterSettings.PaperSources[comboBox1.SelectedIndex];
}
}
Any help is appreciated.
Thanks,
Trint
I tried this with a populated combobox:
private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
{
if (comboBox1.SelectedIndex != -1)
{
PrintDocument printDoc = new PrintDocument();
printDoc.DefaultPageSettings.PaperSource =
printDoc.PrinterSettings.PaperSources[comboBox1.SelectedIndex];
}
}
Any help is appreciated.
Thanks,
Trint