i have a list box and a button. i would like when the button is clicked the selected item in the list box is deleted. any ideas?
Jump to Post
yes you can do it in this way
Try ListBox1.Items.Remove(ListBox1.SelectedItem) Catch ex As Exception MsgBox(Err.Description) End Try
Hope this will Solve your prob .
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.