Hello all,
Does anybody know how to get the SelectedValue for each checked item in a CheckedListBox, without scrolling through the list? I have this code that returns the SelectedValue:
but it scrolls through the list, which looks very "clunky".
I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
Does anybody know how to get the SelectedValue for each checked item in a CheckedListBox, without scrolling through the list? I have this code that returns the SelectedValue:
Code:
For i = 0 To lstAgy.Items.Count - 1
If lstAgy.GetItemCheckState(i) = CheckState.Checked Then
lstAgy.SetSelected(i, True)
Module1.AGY = Module1.AGY & Trim(lstAgy.SelectedValue) & ","
End If
Next
but it scrolls through the list, which looks very "clunky".
I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson