How To Add a Horizontal Scroll Bar to a Visual Basic ListBox (192184)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q192184 SUMMARY
The normal ListBox that comes with Visual Basic for Windows does not have a
horizontal scroll bar. This can be a problem when the item in a ListBox
extends past the boundaries of the ListBox. To add a horizontal scroll bar
to the control, you can call the Windows API SendMessage function with the
LB_SETHORIZONTALEXTENT constant.
REFERENCES
For information on performing this task in 16-bit versions of Visual Basic,
please see the following article in the Microsoft Knowledge Base:
80190
: How To Add a Horizontal Scroll Bar to Visual Basic ListBox
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbhowto KB192184 |
---|
|