Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

traversing within a combo

Status
Not open for further replies.

DESMAN2003

Programmer
Oct 27, 2003
24
AU
Hi,

I was wondering whether anyone has any ideas on how to do this:
I have 2 combo boxes with the following data:
combo 1: 1,2,3,4,5
combo 2: a,b,c,d,e

and 2 buttons.
When button 1 is clicked, I want the following selected in the combo boxes:
combo 1: 1
Combo 2: a

When button 2 is clicked;
Combo 1: 2
Combo 2: b

Does anyone know how I could do this?

Thanks in advance!
 
I solved it... for anyone who is interested:


private void button2_Click(object sender, System.EventArgs e)
{
comboBox1.SelectedIndex = 1;
comboBox2.SelectedIndex = 1;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top