Selecting all the Items in Checked List Box
-
Dear, Is there someone of you knows that how can I programmatically select all the items in a Checked List Box? I tried to do it but I couldn't find any property/method which can let me to iterate through the items of ListBox / Checked Listbox so that I may be able to select them. Thanks for your help. Sameers
-
Dear, Is there someone of you knows that how can I programmatically select all the items in a Checked List Box? I tried to do it but I couldn't find any property/method which can let me to iterate through the items of ListBox / Checked Listbox so that I may be able to select them. Thanks for your help. Sameers
Sub CheckList(ByVal lst As CheckedListBox, ByVal value As Boolean)
Dim i As Integer
For i = 0 To lst.Items.Count - 1
lst.SetItemChecked(i, value)
Next
End Sub
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Sub CheckList(ByVal lst As CheckedListBox, ByVal value As Boolean)
Dim i As Integer
For i = 0 To lst.Items.Count - 1
lst.SetItemChecked(i, value)
Next
End Sub
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer