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:

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

WinForm ComboBox

Avatar of Larry Brister
Larry BristerFlag for United States of America asked on
.NET ProgrammingASP.NETMicrosoft Development
8 Comments1 Solution699 ViewsLast Modified:
I have two comboboxes (cmbCurrSear and cmbDesiredSear)  that are getting populated in code behind with exactly the same items (See attached code)

The items that can be slected are 8,10,11,12,13,14,18,19.5

What I want to do is limit the second combobox so that it can only add items => what was selected in cmbCurrSear.SelectedText

So...If the user selects 11 in the first combox the second would only get populatred with 11,12,13,14,18,19.5

Not to mmention...if I can clean up my code I'd appreciate that as well.  I;ve been in Web Appls not WinForms the past 10 years.
Dim cmbDes1 As New RadComboBoxItem("-Select-")
        Dim cmbDes2 As New RadComboBoxItem("8")
        Dim cmbDes3 As New RadComboBoxItem("10")
        Dim cmbDes4 As New RadComboBoxItem("11")
        Dim cmbDes5 As New RadComboBoxItem("12")
        Dim cmbDes6 As New RadComboBoxItem("13")
        Dim cmbDes7 As New RadComboBoxItem("14")
        Dim cmbDes8 As New RadComboBoxItem("18")
        Dim cmbDes9 As New RadComboBoxItem("19.5")
Avatar of princeatapi
princeatapiFlag of India image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answers