Microsoft KB Archive/90144

= List Box Selected Item Does Not Stay Selected when Scrolling =

PSS ID Number: 90144

Article Last Modified on 1/9/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q90144



SUMMARY
A selected item may change when you scroll the contents of a list box, drive list box, directory List box, file list box, or combo box control if you scroll the list so that the currently selected item moves off the top or bottom of the list. The selected item in a list will change automatically so that it is always in the visible part of the list.

This is a limitation of list-type controls in Visual Basic for MS-DOS, version 1.0. Microsoft is aware of this limitation and will post new information here as it becomes available.



MORE INFORMATION
If you scroll the selected item off the top or bottom of a list, the current selection will change to the next item either above or below that item (as applicable).

For example:
 * 1) Create a List Box that contains 10 items but can only display five items at once.
 * 2) Select the third item.
 * 3) Scroll down.

Note that when the third item is scrolled off the screen, the fourth item gets the focus. When that item is scrolled off the screen, the fifth item gets the focus, and so on.

Additional query words: VBmsdos 1.00 ComboBox DriveBox DirectoryBox DirBox FileList Box

Keywords: KB90144

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.