ok... i know a lot of you are probably tired of me asking questions but i am trying to learn and i am asking about stuff i dont know, not just to get you to do the whole program for me. this question is if there is a list of item in a listview, how can i make it so when someone clicks and item then clicks a button that item is removed? then in separate textbox it should add the price even when the item is removed. pls help[
rhinocort23 0 Junior Poster in Training
Recommended Answers
Jump to Postso you want the item remove and when it remove the price add in text box..
Jump to Posttry this following code to remove item on listview :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each lvItem As ListViewItem In ListView1.SelectedItems lvItem.Remove() Next End Sub
Ok . Hope this helps...
Jump to PostYou need to capture that before deleting the items from the list view.
All 9 Replies
Jx_Man 987 Nearly a Senior Poster Featured Poster
rhinocort23 0 Junior Poster in Training
Jx_Man 987 Nearly a Senior Poster Featured Poster
Jade_me commented: perfect +1
rhinocort23 0 Junior Poster in Training
Jx_Man 987 Nearly a Senior Poster Featured Poster
rhinocort23 0 Junior Poster in Training
debasisdas 580 Posting Genius Featured Poster
rhinocort23 0 Junior Poster in Training
Jim2011 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.