how dow I remove the item i added without clicking other items on the list
i have 3 items each with own cmd's to add to one list. the problem is I only want my cmdremove1 to remove the item cmdadd1 added, to remove cmdremove2...cmdadd2 addded so on
how dow I remove the item i added without clicking other items on the list
i have 3 items each with own cmd's to add to one list. the problem is I only want my cmdremove1 to remove the item cmdadd1 added, to remove cmdremove2...cmdadd2 addded so on
Private Sub Command1_Click()
List1.AddItem "1", 0
List1.AddItem "2", 1
'add just below the other items
List1.AddItem "3"
'add at the top of all other items
List1.AddItem "second 1", 0
End Sub
Private Sub Command2_Click()
List1.RemoveItem 0 'remove the top item
End Sub
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.