ListBox.PressHeader

From Xojo Documentation

Method

ListBox.PressHeader(v as Integer)

Supported for all project types and targets.

Causes the specified ListBox header to be pressed at column v (zero-based), causing a HeaderPressed event to occur. Calling this method does not update the sort direction.

Example

This example presses the first column.

Listbox1.PressHeader(0)