BARATUM 0 Newbie Poster

My assignment is using mobile 6 sdk for testing and code is visual basic
In my assignment, i able to add record to txt file and view it at listview, now i want to delete the record file by check the checkbox at each row of listview and click delete button to delete. any helpful coding to do it?

i have try some codes to do it but cant get the result

Private Sub mnudelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnudelete.Click

        Dim j As Integer = ListView1.Items.Count - 1
        Dim x As Integer = Taskshowdetails.MyData.Count - 1

        If ListView1.Items(j).Checked = ListView1.CheckBoxes = True Then

            ListView1.Items.RemoveAt(j)

            Taskshowdetails.MyData.RemoveAt(x)
        End If

    End Sub