I have a large number of items in a listBox called listBox1. I also have textBox (textBox1) at the top. I want to be able to type in a textBox, and the listBox searches through it for an element and finds those that contain what I am typing.
For example, say listBox contains
"Cat"
"Dog"
"Carrot"
and "brocolli"
If I start typing the letter C, then I want it to show both Cat and Carrot, when I type, it should show both of them, but when I add r, it should remove Cat from the list. Is there any way to do this?
source
share