(Formerly known as ListBoxSetTopItem, which is now obsolete)
int ListBox.TopItem
Gets/sets the top item in the list box. The top item is the first item that is visible
within the list box, so changing this effectively scrolls the list up and down.
Indexes for TopItem start from 0 for the first item in the list.
Example:
lstSaveGames.TopItem = 0;
will automatically scroll listbox lstSaveGames back to the top of the list.
|