A
ListBox is a control that displays a series of Strings.
The line lstDisplay.Items.Clear
uses method Clear to
empty the contents of the ListBox
named lstDisplay.
Method listbox.Items.Insert or
listbox.Items.Add adds a String to a ListBox.
Visual Basic constant vbTab represents a tab. Visual Basic
constants are prefixed with vb and are provided for many commonly used
features.
Format "FormatCurrency" displays a dollar sign, $,
two places to the right of the decimal point and commas after every three digits.
Function DateTime.Now returns the current
system time and date.
Function DateTime.Now.Year returns the current
year.
Ex. Console.WriteLine("Program
started at: " & DateTime.Now.ToLongTimeString)
Function Space creates and returns a String
containing spaces–the value passed to Space specifies the number of spaces to create.
ex. Space(10)