checkedListBox - new item checked

  • Thread starter Thread starter Grant
  • Start date Start date
G

Grant

Hello,

When I am adding things to my checkedListBox - how do I check an item as it
is added?
In other words I loop through an array adding text to the checkedListBox and
when the corresponding value in that array for that text is true, a check
mark is added.

I cant find any examples on how to do this.

Thanks,
Grant
 
Hi Grant,

Do you mean

checkedListBox1.Items.Add(newitem, CheckState.Checked); // item is marked as checked


Happy coding!
Morten Wennevik [C# MVP]
 
Back
Top