Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

ComboBox Array - Processing User Selections

Avatar of lep1
lep1 asked on
.NET ProgrammingVisual Basic.NETMicrosoft Development
10 Comments1 Solution758 ViewsLast Modified:
I need to setup a variable number of comboboxes for users, depending on how many comboboxes a user wants.   (BTW, each combobox has the same options).   However, if I programattically add 15 comboboxes to the control collection of a form, I will be stuck with placing all the selectedIndex processing code in each of the comboboxe's selectedindexchanged events.

Given this situation, how can I use a single selectedIndexchanged event for a combobox array, and also detect which array element and selectedindex were clicked?

My thought is that there will obviously be one selectedindexchanged event for the combobox array, so the trick is to interrogate which array element of the combobox was selected along with detecting the selectedindex.
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers