0

i i have a listbox and 1 button in my application

thing i want is when i click on some listbox item auto press that button

or

when i click on some item in list box it remove selected items from list box just with mouse click

Edited by honeybee2090: n/a

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by honeybee2090
0

Remove selected items :

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        For i As Integer = 0 To ListBox1.SelectedIndices.Count - 1
            ListBox1.Items.RemoveAt(ListBox1.SelectedIndex)
        Next
End Sub
0

Removed. I had a comment but Jx Man beat me to it;)

i try given codes its solved

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.