get value from checklistbox after selection to store data in sql database in vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parkashkaur
    New Member
    • Sep 2008
    • 3

    get value from checklistbox after selection to store data in sql database in vb.net

    Hor do I get value from chekexlistbox after selection of 4 checklistbox
    to store data in sql database in vb.net
  • Stang02GT
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    Moved to VB forum please make sure you are posting in the correct forum.

    Comment

    • kadghar
      Recognized Expert Top Contributor
      • Apr 2007
      • 1302

      #3
      check the CHECKEDINDICES property, you can use it's indices, check this little example:

      [CODE=vb]Dim str1 As String = "Checked indices are: "
      Dim i As Integer
      For i = 0 To CheckedListBox1 .CheckedIndices .Count - 1
      str1 = str1 & CheckedListBox1 .CheckedIndices (i).ToString & ", "
      Next
      MsgBox(str1)[/CODE]

      hope it helps.

      Comment

      Working...