PRB: Bound ListBox Doesn't Show List Item When MultiSelect = 2Last reviewed: May 16, 1996Article ID: Q142928 |
The information in this article applies to:
SYMPTOMSIf you set the MultiSelect property of a bound Standard ListBox control at design time to 2-Extended, and then run the application, you can MultiSelect with CTRL+Click but the control is not bound to the Data control at this time. When you go back into design mode, the MultiSelect property is reset to 0-None, then when you run again, you get the correct behavior.
CAUSEThis is a behavior of Visual Basic. It is not practical to select multiple items from a listbox that is bound to only a single column of a data control. If you set the MultiSelect property of the control to 2-Extended, Visual Basic should reset it back to 0-None before going into run mode, not after it returns from the first run. This way it will not appear that you can almost get MultiSelect to work with a bound listbox.
RESOLUTIONDo not set the MultiSelect Property of a bound standard ListBox control to 2-Extended as it will cause this misleading behavior.
MORE INFORMATION
Steps to Reproduce Problem in Visual Basic Version 4.0
|
Additional reference words: 4.00 vb4win list box
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |