checkedlistbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How could I compare every item(text) checked in the checkedlistbox to any
given string.

If CheckedListBox1.CheckedIndices.Count > 0 Then
For i = 0 To CheckedListBox1.CheckedItems.Count - 1
If CheckedListBox1. ?? = objReq.Owner.Name Then

End If
Next
End If

PLease help.
Thank you. !!
 
For Each indexChecked In CheckedListBox1.CheckedIndices
' The indexChecked variable contains the index of the item.
if CheckedListBox.Item(indexchecked).ToString = objReq.Owner.Name then
'Do your thing here
end if
Next
 
Back
Top