The main problem of traditional arrays is that their size is fixed
by the number you specify when declaring the array variable: you cannot add
items beyond the specified dimension. Another limitation is that you cannot
insert an item inside the list. To overcome this, you can create a linked list.
Instead of working from scratch, the .NET Framework provides the ArrayList class.
With the ArrayList class, you can add new items to a list, insert items inside a
list, arrange items of a list, check the existence
of an item in a list, remove an item from the list, inquire about the list,
or destroy the list. These operations are possible through various properties and methods.
The ArrayList class is defined in the System.Collections
namespace. To use it, first declare a pointer to ArrayList. Here is
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim lstNumbers As ArrayList = New ArrayList
Learning: Introducing the ArrayList Class