Message 1 of 3
Vb.Net - CheckedListBox - Check If Any Item Has Been Checked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I am writing a Vb.Net application for use with Autodesk Inventor, but, I cannot get the following code to work.
For Counter = 0 To CheckedListBox1.Items.Count - 1
If CheckedListBox1.GetItemChecked(Counter) Then
MsgBox("A CHECKED ITEM HAS BEEN FOUND")
Exit For
End If
Next
I have a CheckedListBox populated with various items. All I am trying to do is to determine if any item has been checked.
I have searched the Internet for the solution but I have not found anything to resolve the problem.
Many thanks in advance!
Kind Regards
Darren