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
 
 
 
 
 
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-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated