I am trying to change a listviews items forecolor after searching through the listview and finding a entry that matches a textbox's text
I can perform the listview search but i cannot get the listviews text forecolor to change color
error message on this line "Me.ListView1.SelectedItems(i).ForeColor = Color.Blue":Code:Dim text As String = Me.TextBox1.Text For i As Integer = 0 To Me.ListView1.Items.Count - 1 Me.ListView1.FindItemWithText(text) '.ForeColor = Color.Blue Me.ListView1.SelectedItems(i).ForeColor = Color.Blue Next
regardsInvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index
toe




Reply With Quote