property ComboBox.TreeColumnIndex as Long

Retrieves or sets a value indicating the column's index where the hierarchy will be displayed.

TypeDescription
Long A long expression that indicates the index of column where the hierarchy is displayed.

Use TreeColumnIndex property to change the column where the hierarchy lines are painted. Use SearchColumnIndex property to specify the column where the incremental search feature works. The control paints no hierarchy, if the TreeColumnIndex property is -1. Use the HasLines, LinesAtRoot properties to show the hierarchy lines. The Alignment, CellHAlignment property aligns cells in the column. If the index of the column is equal with the TreeColumnIndex property, the cells can be aligned only to left or to the right. Use the Indent property to define the amount, in pixels, that child items are indented relative to their parent items.