How to uncheck all checked item in checkedlistbox

A

appearinggalaxy

Anyone know how to uncheck all the checked item in a checkedlistbox?
It will be appreciate if you could show me the sample codes, Thanks!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
H

Herfried K. Wagner [MVP]

appearinggalaxy said:
Anyone know how to uncheck all the checked item in a checkedlistbox?

\\\
Dim i As Integer
For i = 0 To Me.CheckedListBox1.CheckedIndices.Count - 1
Me.CheckedListBox1.SetItemChecked(Me.CheckedListBox1.CheckedIndices(0),
False)
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

Top