Returns or sets the index of the topmost item shown in the list.
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. |
Setting this property will scroll through a control without selecting an item. The default value is zero.
The following statement changes the AListBox List array's 4rd item to be placed at the top of the listbox:
lb1.TabPositionsCount=3