PRB: Bound ListBox Doesn't Show List Item When MultiSelect = 2 (142928)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition for Windows 4.0
- Microsoft Visual Basic Professional Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
- Microsoft Visual Basic Standard Edition for Windows 4.0
- Microsoft Visual Basic Professional Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
This article was previously published under Q142928 SYMPTOMS
If 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.
CAUSE
This 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.
RESOLUTION
Do not set the MultiSelect Property of a bound standard ListBox control to
2-Extended as it will cause this misleading behavior.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbprb KB142928 |
---|
|