Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
 
 
 
 
TitleBuild a simple image list without an extra OCX
Keywordsimage list, imagelist
CategoriesControls
 
By Ariel Canievsky.

Store the pictures in an array of Image controls. Use a vertical scrollbar to select the image. In the scrollbar's Change event handler, display the new image.

To prevent annoying blinking of the scrollbar, set its TabStop property to False.

 
Private Sub VS_Change()
    For j = 0 To imgChoices.Count - 1
        imgChoices(j).Visible = False
    Next
    imgChoices(vs.Value).Visible = True
End Sub
 
 
Copyright © 1997-2001 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated