Hi,
is there a way I can put the current list items in this line of code?
items.AddRange(new string[] { "Cat", "Dog", "Carrots", "Brocolli" });
foreach (string str in items)
{
listBox1.Items.Add(str);
}
I mean this cat,dog and etc will be change to current list items
so that whenever I type something in the textbox,it will show an item nearest to the text that i input in the textbox to my listbox,because in my listbox it shows the current list