If, like me, you were trying to use the Selection as one indicator (the item selected by the user), and the user wanting to changed the tick then I found a sneaky solution.
Form variables
Private IsTicked As Boolean = False
Private ListIndex = -1
Create a timer on the page. For instance, mine is called tmrBan
, and I have a CheckBoxList
called clbFTI
.
Then, create a Click Event for your CheckBoxList
.
Private Sub clbFTI_Click(sender As Object, e As EventArgs) Handles lbFTI.MouseClick
ListIndex = sender.SelectedIndex
IsTicked = clbFTI.SelectedIndices.Contains(ListIndex)
tmrBan.Interval = 10
tmrBan.Enabled = True
End Sub
Then, create a Tick Event for your timer
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles tmrBan.Tick
clbFTI.SetItemChecked(ListIndex, IsTicked)
End Sub
You will see a flicker of the tick, but play around with the timer Interval to make this better for your case.