By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,423 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Select All from CheckedListBox

P: n/a
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
MCSE, MCP+I, MCP in Windows 2000/NT

--------------------------------------
remove the 2nd madrid from my mail address to contact me.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Daniel" <da****@madridmadridsoleado.com> schrieb:
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
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.