I Have a wpf Listbox that display\'s a list of textboxes. When I click on the Textbox the Listbox selection does not change. I have to click next to the TextBox to select th
Try this code:
foreach (object item in this.listBox1.Items) { if (textbox1.text.equals(item.toString())) { //show error message; break } }