List Box Selected Item Does Not Stay Selected when Scrolling

ID: Q90144


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


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 :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


Last Reviewed: December 9, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.