[2005] CheckedListBox

yulyos

Well-known member
Joined
Jun 4, 2004
Messages
67
Location
Israel
Programming Experience
5-10
Hi,

I have a CheckedListBox in my form.

How I can uncheck items (example: 5 items that I Checked) without click of the mouse, OR to check all the items?

Only with lines of code.

Thanks in advance
 
Last edited:
Hi,

Thank you, I found the solution.

VB.NET:
CheckedListBox1.BeginUpdate()
For i As Integer = 0 To CheckedListBox1.Items.Count - 1
'CheckedListBox1.SetItemCheckState(i, CheckState.Checked)
CheckedListBox1.SetItemCheckState(i, CheckState.Unchecked)
Next
CheckedListBox1.EndUpdate()
 
Back
Top