
In this sample program I will try to explain you how you can add, remove and clear items form a ListView control using Visual Basic.Net (VB.Net). ListView control allows you to display item text in a list. For example you are selecting files from a TreeView control using ListView control you can display all your selected files in a list. Using ListViewItem class you can access list of items present in a List. Each item that is added in a list forms a collection named as ListViewItemCollection. Here I will use three of its methods Items.Add, Item.Remove and Items.Clear.
|