private void textBox1_TextChanged(object sender, EventArgs e) { for (int i = 0; i < StrList.Items.Count; i++) { if (StrList.Items[i].ToString().ToLower().Contains(Pesquisar.Text.ToLower())) { StrList.SetSelected(i, true); break; } } }