ListBox.Columns
The ListBox Control Object that is returned by the AddListBox function has a Columns property. The Columns property allows you to define the number of columns in the List Box.
Syntax |
ControlObject.Columns = Columns Where ControlObject. is the name of the variable (declared in your script) that is used to store the List Box Control Object that is returned by the AddListBox function. |
Description |
Sets the number of columns in the List Box. |
Arguments |
Columns {integer} Defines the number of columns for the List Box. |
Returns |
Integer |
Example:
ListBox.Columns = 2
Where:
- ListBox is the name of the variable used to store the List Box Control Object that is returned by the AddListBox function (which would be defined earlier in the script)
- Columns = 2 sets the List Box to have 2 columns.