Hi @Aypn CNN ,
If you want to check if there is at-least one checked, you could check if SelectedIndex is equal with -1. And if you want to know how many listboxes are checked,you could use count.
Just like this:
For i As Integer = 0 To CBL_DD.Items.Count - 1
Dim b As Boolean = (If((CBL_DD.SelectedIndex <> -1), True, False))
lblMessage.Text = b.ToString()
Next
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.