Article ID: 192184 - View products that this article applies to.
This article was previously published under Q192184
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.
This message sets the width in pixels by which a ListBox can scroll horizontally. If the width of the ListBox is smaller than this value, a horizontal scroll bar will be added to allow horizontally scrolling items in the ListBox.
For information on performing this task in 16-bit versions of Visual Basic, please see the following article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/80190/EN-US/ ): How To Add a Horizontal Scroll Bar to Visual Basic ListBox
Article ID: 192184 - Last Review: July 15, 2004 - Revision: 3.2