2012-11-14 65 views

回答

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 
+0

非常感謝您! :)它的作品完美。工作完成。 – blueye89

+0

@ blueye89歡迎您提供幫助 –

相關問題