combo box help

DaParaGoomba

New member
Local time
Today, 14:48
Joined
Oct 23, 2011
Messages
1
hello i am semi new at the whole visual basic 2010 thing i know enough to make some simple programs but what im doing now eludes me, so pretty much i have two combo boxes combo box 1 is names cmpModelSubCat (it handles what catagory of computer it is like notebook, netbook desktop and so on and so forth) the second combo box is cmpCompanyList (and this one displays the company of the computer and not all company's hold the exact same products)
now what i want is for say if cmpModelSubCat.Text = "Notebook" then i want cmpCompanyList to show all of the companies that make that in the second combo box but when i try to make cmpCompanyList show a whole list for that it only shows me one brand and when i click the list down button it shows up blank i will provide the code that i am using hopefully some one can help me out with this

Private Sub chkBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkBox1.Click
If cmpModelSubCat.Text = "Notebook" Then cmpCompanyList.Text = ("ACER")
If cmpModelSubCat.Text = "Notebook" Then cmpCompanyList.Text = ("ASUS")
If cmpModelSubCat.Text = "Notebook" Then cmpCompanyList.Text = ("DELL")
If cmpModelSubCat.Text = "Notebook" Then cmpCompanyList.Text = ("GATEWAY")
If cmpModelSubCat.Text = "Notebook" Then cmpCompanyList.Text = ("HP")
If cmpModelSubCat.Text = "Notebook" Then cmpCompanyList.Text = ("LENOVO")
End Sub

so im hoping you guys can help me thanks in advance
 

Users who are viewing this thread

Back
Top Bottom