ListBox

A listbox is a graphical box which contains text :

Add an element :

listboxname.items.add(text);

remove an element

listboxName.items.delete(number);//where number is the index number

remove the selected element

listboxName.DeleteSelected;

Automatically sort

Setup the Sorted property to true

Number of elements in a listBox

listbox.items.count

Be careful : the item number of the first element is 0

Get an element

listboxname.Items.Strings[number]