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 scroll bar's thumb proportional to the number of visible items
DescriptionThis example shows how to make a scroll bar's thumb proportional to the number of visible items in Visual Basic 6. It sets LargeChange = (Max - Min + 1) * num_visible / num_hidden.
KeywordsScrollBar, thumb
CategoriesControls
 
Thanks to Ray White.

This program sets the scroll bar's LargeChange property like this:

    LargeChange = (Max - Min + 1) * num_visible / num_hidden

Here num_visble is the number of visible items and num_hidden is the number of hidden items.

See the code for additional details.

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