this is my problem with my system, I have a simple combobox control in my form in order to search the users, i want to filter the records in my database based on users input(like you search in google there is a drop down list)I want my combobox drop down when it matches the criteria to the database. this is my code, but it doesnt work, am using vb.net 2005
con.open()
ds = new dataset()
cmd = new oledbcommand("Select SerialNumber from Itemname where SerialNumber Like ' % " & me.Combobox1.Text & " % ' ", con)
da = new oledbdataAdapter(cmd)
da.fill(ds,"Itemname")
me.combobox1.datasource = ds.tables("Itemname")
me.combobox1.displaymember="SerialNumber"
me.combobox1.dropdwnstyle = combobox1.simple
me.combobox1.dropdown = true
me.combobox1.Autocompletemode = combobox1.SuggestAppend
please do help, i never seen this in google. thank you so much.