ListBox.ColumnCount

From Xojo Documentation

Property (As Integer )
aListBox.ColumnCount = newIntegerValue
or
IntegerValue = aListBox.ColumnCount

Supported for all project types and targets.

The number of columns the ListBox contains. The maximum number of columns is 256.

Notes

Setting this value higher than 255, will result in the ColumnCount being set to 256.

Examples

Adding a column to ListBox1 and setting the widths of the columns to 50 and 65 pixels, respectively:

ListBox1.ColumnCount = 2
ListBox1.ColumnWidths = "50,65"

Setting the number of columns of ListBox1 to three and setting the widths of the columns to 60%, 20% and 20% respectively:

ListBox1.ColumnCount = 3
ListBox1.ColumnWidths = "60%,20%,20%"