i made program to populate employe name in checkedlist box. now i need a search box for searching items from the combo box.when i typing the matching items must list out in the checked list box.for that how i code in vb.net ?. in key press even driven section i give the code but its not working properly.Please provide sufficient information. my code is given below
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
Dim conobj As Class1
conobj = New Class1
conobj.connection()
Dim str1 = "select distinct e.vc_empname xxxxxxx e.vc_empname like '" & Me.TextBox1.Text & "%' order by e.vc_empname"
conobj.readdata1(str1)
CheckedListBox1.DataSource = conobj.ds.Tables(0)
CheckedListBox1.DisplayMember = "vc_empname"
CheckedListBox1.ValueMember = "vc_empname"
End Sub