我试过:
但没有效果。
最佳答案
尝试这样的事情,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
关于vb.net - 如何检查列表框中所选项目中的某些特定单词?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13371746/