You can actually set the check state while you're adding the item(s), in
code.
this.checkedListBox1.BeginUpdate();
for (int x = 0; x < 25; x++)
{
this.checkedListBox1.Items.Add(x.ToString(), CheckState.Checked);
}
this.checkedListBox1.EndUpdate();
If you really need to set all the check states after you have added the
items, then you can use the SetItemChecked method.
this.checkedListBox1.BeginUpdate();
for (int x = 0; x < 25; x++)
{
this.checkedListBox1.Items.Add(x.ToString());
}
for (int x = 0; x < this.checkedListBox1.Items.Count; x++)
{
this.checkedListBox1.SetItemChecked(x, true);
}
this.checkedListBox1.EndUpdate();