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
Printable View
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
The CheckedIndices collection keeps a list of all checked items.Quote:
Originally Posted by yulyos
Use this to get/set the checked mark of the list item.
Pradeep :)
Hi,
Thank you, I found the solution.
VB Code:
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()