checkedListBox - new item checked

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
 
M

Morten Wennevik

Hi Grant,

Do you mean

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


Happy coding!
Morten Wennevik [C# MVP]
 
G

Grant

Thanks Morten. I should look a little closer at the intellisense next time.

Cheers,
Grant
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top