Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select a value from checkboxlist

Status
Not open for further replies.

mchoudhury

Programmer
Nov 26, 2004
71
GB
Hi Experts
I have a checkboxlist, inside the checkboxlist i have 5 items (checkboxes). Say if a user selects a checkbox how would i represent this in vb.net code. if it was just checkbox i would say:

a.checked = true

but with checkboxlist i have values, say a users selects two checkbox how would i write the code.

Thanks

Mac
 
try this:


Dim objItemChecked As Object

For Each objItemChecked In CheckedListBox1.CheckedItems
msgbox (objItemChecked.ToString)
Next



Sam
 
Error:CheckedItems is not a memeber of checkboxlist. Also say a user select three checkboxes how would i represent that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top