Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleAdd a horizontal scrollbar to a ListBox if it is needed in Visual Basic .NET
DescriptionThis example shows how to add a horizontal scrollbar to a ListBox if it is needed in Visual Basic .NET
KeywordsListBox, scroll, scrollbar, scroll bar, horizontal scroll bar, VB.NET
CategoriesControls, 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.

 
 
Copyright © 1997-2006 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated