Hi, i am using VB6 and in my project using List View Control. The checkboxes property is setted true. Now i want to implement a functionality so that to remove only those entries/items cheked by user from the list. Can anybody tell me how to implement this. ANY CODE
saquibaltaf
0
Newbie Poster
Recommended Answers
Jump to PostHi,
Loop thru all the List Items and if it is selected use this code to delete the item:
lvw.ListItems.Remove (2)
Above code removes second item in listview.
Regards
Veena
Jump to PostHi,
This is a Tricky Situation,
Since After Removing Selected Items, ListItems.Count Keeps on Decreasing, so u have to reverse ur "For Loop " condition.
Check this Code:For nI = lvBooks.ListItems.Count To 1 Step -1 If lvBooks.ListItems.Item(nI).Checked = True Then lvBooks.ListItems.Remove (nI) End If …
Jump to PostWe appreciate your help. Have you ever noticed that the current thread is two years old? Please do not resurrect old threads and have a look at forum rules. Please read before posting - http://www.daniweb.com/forums/thread78223.html
Thread Closed.
All 11 Replies
QVeen72
104
Posting Shark
saquibaltaf
0
Newbie Poster
QVeen72
104
Posting Shark
saquibaltaf
0
Newbie Poster
saquibaltaf
0
Newbie Poster
vsr321
0
Newbie Poster
QVeen72
104
Posting Shark
alpesh_08b091
0
Newbie Poster
baune
0
Newbie Poster
kinwang2009
7
Posting Whiz in Training
kvprajapati
1,826
Posting Genius
Team Colleague
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.