我尝试过:
- 如果 ListBox1.Items 包含 "myword" Then
- 如果 ListBox1.SelectedIndex = ListBox1.Items.IndexOf("myword") Then
- 如果 ListBox1.SelectedItems.Item("myword") Then
但没有效果。
我尝试过:
但没有效果。
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