TopIndex Property (AListBox)

Returns or sets the index of the topmost item shown in the list.

Syntax

Object.TabIndex [ = lTopIndex ]

The TabIndex property syntax has the following parts:

 

Name

Type

Description

Object

AListBox

AListBox control

lTopIndex

Long

A integer specifying which item is displayed in the topmost position of the listbox.

Comments

Setting this property will scroll through a control without selecting an item. The default value is zero.

Example

The following statement changes the AListBox List array's 4rd item to be placed at the top of the listbox:

lb1.TabPositionsCount=3

Applies to

AListBox

See Also

List, TabPositions