|
|
Title | Add a horizontal scrollbar to a ListBox if it is needed in Visual Basic .NET |
Description | This example shows how to add a horizontal scrollbar to a ListBox if it is needed in Visual Basic .NET |
Keywords | ListBox, scroll, scrollbar, scroll bar, horizontal scroll bar, VB.NET |
Categories | Controls, VB.NET |
|
|
Simply set the ListBox's HorizontalScrollbar property to True. The scroll bar automatically appears and disappears as needed.
This example lets you remove items from a ListBox. If you remove the longest items, the scroll bar disappears when it is no longer needed.
The ListBox is also docked to the form's edges. If you make the form narrower and wider, the scroll bar appears and disappaears as needed.
|
|
|
|
|
|