I’m trying to keep the listbox rows only with the partially matched from the text in Textfield data whenever user writes any string there.
Finally, the features gives user a chance to check the target data he is looking for. Assuming that he doesn’t know the exact spell of the data.
In TextChange event of the Textfiled, I coded like below. But, it doesn’t work.
Can you let me know what is wrong, or give me the best practice to accomplish that?
Dim checkString As String = Me.text For i as integer = CompObjList.ListCount - 1 downto 0 If Instr(checkString,CompObjList.Cell(i,2)) < 1 Then CompObjList.RemoveRow(i) End If Next