By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,224 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,224 IT Pros & Developers. It's quick & easy.

checkedListBox - new item checked

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Grant,

Do you mean

checkedListBox1.Items.Add(newitem, CheckState.Checked); // item is marked as checked
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2

P: n/a
Thanks Morten. I should look a little closer at the intellisense next time.

Cheers,
Grant

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opr74ustdrklbvpo@morten_x.edunord...
Hi Grant,

Do you mean

checkedListBox1.Items.Add(newitem, CheckState.Checked); // item is marked
as checked
Happy coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.