To delete selected item from listbox you need to use the following code.
Private Sub btnDelete_Click(sender As Object, e As EventArgs) Handles Delete.Click
Dim itemfordeletion
itemfordeletion = ListBox1.SelectedItem
ListBox1.Items.Remove(itemfordeletion)
End Sub
No comments:
Post a Comment