Guys need help.. I have button that adds element in array and displays the item that is added in array in the listview, And also i have button that deletes it but it's not working.
Here's the code:
Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click Dim i As Integer Dim new_array As New List(Of String)(movieArray) With ListView1 If Not .SelectedItems.Count >= 0 Then ListView1.SelectedItems(0).Remove() new_array.RemoveAt(movieArray(i)) End If End With End Sub
movieArray - Where the items stored.