ComboBox Select, then do something??

  • Thread starter Thread starter trint
  • Start date Start date
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
 
trint,

Can you clarify what exactly you are asking? Are you saying that the event
is not firing? Or you want some specific behavior when the event fires?
Please reply to this post to let us know so we may help you better.

Thanks.
 
Back
Top