Using a ListBox (Part 1)
01/10/2016
|
0:10:45
Using a ListBox - adding items, determining selected index and selected item, removing an item, and clearing the list. Shell program available at http://bowerpower.net/compprog1/vb05/UsingAListBox.zip
Using a ListBox (Part 1)
Created: 01/10/2016
0:00:10
Putting a ListBox on a form (the three-letter prefix is lst)
0:00:40
Adding items to the ListBox when designing the program
0:01:31
.Count property (counts the number of items in the ListBox)
0:02:13
.SelectedIndex property (the index of the item in the ListBox that is currently highlighted - if no item is selected, it will return -1)
0:04:19
.SelectedItem property (the item in the ListBox that is currently highlighted).
0:06:13
.Add (adds an item to the end of the list in the ListBox)
0:08:05
.RemoveItem (removes an item from the ListBox - if the item isn't in the list, nothing happens)
0:10:14
.Clear (removes all the items from the ListBox)