T
trint
Ok,
I populate the combobox just once upon page "initializecomponent":
PaperSource pkSource;
for (int i = 0; i < printDoc.PrinterSettings.PaperSources.Count;
i++)
{
pkSource = printDoc.PrinterSettings.PaperSources;
comboBox1.Items.Add(pkSource);
}
Now, I want to programatically select the index value without clicking
on it, because, I know the value! Can I do this?:
PrintDocument printDoc = new PrintDocument();
printDoc.DefaultPageSettings.PaperSource =
printDoc.PrinterSettings.PaperSources[comboBox1.SelectedIndex =
4]; <<<I know it needs to be 4 without selecting it.
Thanks,
Trint
I populate the combobox just once upon page "initializecomponent":
PaperSource pkSource;
for (int i = 0; i < printDoc.PrinterSettings.PaperSources.Count;
i++)
{
pkSource = printDoc.PrinterSettings.PaperSources;
comboBox1.Items.Add(pkSource);
}
Now, I want to programatically select the index value without clicking
on it, because, I know the value! Can I do this?:
PrintDocument printDoc = new PrintDocument();
printDoc.DefaultPageSettings.PaperSource =
printDoc.PrinterSettings.PaperSources[comboBox1.SelectedIndex =
4]; <<<I know it needs to be 4 without selecting it.
Thanks,
Trint