say ive a listbox with items already present, say the items are
Ant
Adam
Ball
Cat
Dog
Ear
Frog
above the listbox there is a textbox prompting the user to search
say if i enter in textbox ad then it must point to Adam if i remove a then it must point to Dog and must not use a button to search
also if i click on the item cat in the listbox, then next to the listbox there is a textbox it says Hi I'm Cat
I see that its not correct to use textbox to display Hi I'm Cat what shall i use to display info regarding the details of selected item.
Found solution myself
private void textBox1_TextChanged(object sender, EventArgs e)
{
int index = listBox1.FindString(textBox1.Text, -1);
if (index != -1)
{
listBox1.SetSelected(index, true);
}
}