I want to get the name of the item for the index that i have checked...But i am getting only the index value, not the name of item.
Sub Button1_click
Dim sb As StringBuilder
sb.Initialize
For i = 0 To lstChecks.Size - 1
Dim chk As CheckBox
chk = lstChecks.Get(i)
If chk.Checked Then
sb.Append(i).Append(CRLF)
Dim str() As String = (lstChecks.Get(1))
Msgbox (str,"Item Name")
End If
Next
Msgbox(sb.ToString, "Checked Indexices")
End Sub
Sub Button1_click
Dim sb As StringBuilder
sb.Initialize
For i = 0 To lstChecks.Size - 1
Dim chk As CheckBox
chk = lstChecks.Get(i)
If chk.Checked Then
sb.Append(i).Append(CRLF)
Dim str() As String = (lstChecks.Get(1))
Msgbox (str,"Item Name")
End If
Next
Msgbox(sb.ToString, "Checked Indexices")
End Sub