Please help. Im having trouble displaying the checkbox's text in the listview form. It only display's the text of the 1st checkbox.
I cant seem to display the remaining checkbox.text. It only display's the 1st checkbox in my ListView form. I have another form for ListView.vb
Here is the code:
Public Class Abdominal
Private Sub selectAll_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles selectAll.CheckedChanged
If selectAll.Checked = True Then
crunches.Checked = True
legRaises.Checked = True
reverseCrunches.Checked = True
overheadLegRaise.Checked = True
declineBenchSitups.Checked = True
pullDownCableCrunches.Checked = True
End If
End Sub
Private Sub sumbit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sumbit.Click
Dim i As Integer
Dim newItem As New ListViewItem(i + 1) '// add text Item
newItem.SubItems.Add(crunches.Text)
newItem.SubItems.Add(legRaises.Text)
newItem.SubItems.Add(reverseCrunches.Text)
newItem.SubItems.Add(overheadLegRaise.Text)
newItem.SubItems.Add(declineBenchSitups.Text)
newItem.SubItems.Add(pullDownCableCrunches.Text)
ListView.ListView1.Items.Add(newItem)
ListView.Show()
End Sub
End Class