Anyone know how to scroll a listbox control to the row index of the 'first' selected value??
For example, a listbox with 200 items, displays 8 items at any one time (scrollbar down side):
Selected items at (say) row# 99, 140, 150, and 155. I do not want to display row index# 0 thru 7, but scroll down to row# 99 and display it.
[red]
rowIdx = 99 ' item to scroll to
ctlListName.Selected(rowIdx) = True[/red][green]
' some code here to
' force ctlListName to scroll down
' & put rowIdx at the top of the control[/green][red]
...
[/red]
cheers
L.
For example, a listbox with 200 items, displays 8 items at any one time (scrollbar down side):
Selected items at (say) row# 99, 140, 150, and 155. I do not want to display row index# 0 thru 7, but scroll down to row# 99 and display it.
[red]
rowIdx = 99 ' item to scroll to
ctlListName.Selected(rowIdx) = True[/red][green]
' some code here to
' force ctlListName to scroll down
' & put rowIdx at the top of the control[/green][red]
...
[/red]
cheers
L.