Select All in List box

I went ahead and made this a sub routine passing it a boolean so you can simply call it and pass a True or a False if you want all the items to be checked or not
VB.NET:
    Private Sub CheckItems(ByVal IsChecked As Boolean)
        For Counter As Integer = 0 To CheckedListBox1.Items.Count
            CheckedListBox1.SetItemChecked(Counter, IsChecked)
        Next
    End Sub
 
Back
Top