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
 
 
 
 
TitleMake a dialog that stretches controls on the bottom and right to take advantage of its full size in VB .NET
Keywordsstretch, Anchor, VB .NET
CategoriesControls, VB.NET, Software Engineering
 
Some controls such as ListBox, ListView, and DataGrid can display large amounts of data. If you put one of these controls on the bottom of a form and make it resize itself when the form gets taller, you can display as much data as will fit on the form.

Position the control so it extends to the left, right, and bottom edges of the form. Then set its Anchor property to Bottom, Left, Right. The rest is automatic.

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