ComboBox Select, then do something??

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top