checkedlistbox

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. !!
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top