PDA

Click to See Complete Forum and Search --> : How to use the checklistbox


csvax
Oct 22nd, 2002, 10:02 AM
Hi all,

I am trying to use the checklistbox in my program. I can add, remove an item. But how to retrieve an item later on ? Can someone show me an example code ? thx.

Bananafish
Oct 22nd, 2002, 11:52 AM
This example does something with all boxes that are checked - does this answer the question?


Dim intX As Int32
lblTaskDesc.Text = ""
For Each intX In CheckedListBox1.CheckedIndices
lblTaskDesc.Text &= CheckedListBox1.Items.Item(intX).ToString
Next

csvax
Oct 22nd, 2002, 01:30 PM
Exactly what i need. Thank you so much.