Im trying to make a button delete more than one item at the same time when they r all highlighted in a list box. Heres what I have so far:
Cheers
Code:
Private Sub DelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles DelButton.Click
If LeftListBox.SelectedItems.Count <> 0 Then
LeftListBox.Items.Remove(LeftListBox.SelectedItem)
LeftTextBox.Focus()
EnableDisableButtons()
End If
If RightListBox.SelectedItems.Count <> 0 Then
RightListBox.Items.Remove(RightListBox.SelectedItem)
LeftTextBox.Focus()
EnableDisableButtons2()
End If
End Sub
Cheers