Hi!!
im doin a proyect that have to create a library, n create, delete an modificate books to the library. im using a listview to show all the books that r created, n should delete books that i deleted n if a modify one, should delete it n then upload the corrected one.
im stuck with modifing the book, wont let me check the items in the listview with the textbox
here i paste the code that isnt workin n att. the whole proyect
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim j As Int32
If (TextBox1.Text < 1000) Or (TextBox1.Text > 32000) Then
MessageBox.Show("codigo incorrecto. tiene q ser entre 1000 y 32000")
Exit Sub
Else
Dim bibaux As New List(Of LIBRO)
For j = Altas.ListView1.Items.Count - 1 To 0 Step -1 'busca en el listview
If (Altas.ListView1.SelectedItems(j).Text = TextBox1.Text) Then 'si existe
Altas.ListView1.Items.RemoveAt(j) 'borra esa posicion
End If
Next
Altas.TextBox1.Text = TextBox1.Text
Altas.Show()
End If
End Sub