我试过了:
但没有效果。
答案 0 :(得分:2)
尝试类似这样的内容,listbox.items属性为ListBox.ObjectCollection:
For Each i As Object In ListBox1.SelectedItems
If CStr(i).Contains("myword") Then
BackColor = Color.Blue ' Do your logic here, I just used setting the BackColor for a test
End If
Next