You can actually set the check state while you're adding the item(s), in
code.
this.checkedLis tBox1.BeginUpda te();
for (int x = 0; x < 25; x++)
{
this.checkedLis tBox1.Items.Add (x.ToString(), CheckState.Chec ked);
}
this.checkedLis tBox1.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.checkedLis tBox1.BeginUpda te();
for (int x = 0; x < 25; x++)
{
this.checkedLis tBox1.Items.Add (x.ToString());
}
for (int x = 0; x < this.checkedLis tBox1.Items.Cou nt; x++)
{
this.checkedLis tBox1.SetItemCh ecked(x, true);
}
this.checkedLis tBox1.EndUpdate ();
--
Tim Wilson
..Net Compact Framework MVP
"Hrvoje Voda" <hr*********@lu atech.com> wrote in message
news:d5******** **@ss405.t-com.hr...
After I fill checked listbox with data, I would like to checked all items
in list ?
Hrcko