Select All from CheckedListBox

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

Hi all,

Is there a quick way to check all the items of a list box? Or do I need
to use a For Each statement. If so, what is the collection for the items?

i.e. For Each Ticks as ??? In CheckedListBox1.Items

Thanks
 
Daniel said:
Is there a quick way to check all the items of a list box? Or do I need
to use a For Each statement. If so, what is the collection for the items?

i.e. For Each Ticks as ??? In CheckedListBox1.Items

I don't think that there is a shorter solution.

\\\
For i As Integer = 0 To Me.CheckedListBox1.Items.Count - 1
Me.CheckedListBox1.SetItemChecked(i, True)
Next i
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top