Results 1 to 2 of 2

Thread: How to scroll through several image thumbnails in my Vb app?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Question How to scroll through several image thumbnails in my Vb app?

    My program has anywhere from 10 to 100 or more image files in JPG format and I want to create a window of thumbnails for each image and elt the user scroll through them and click on one to view in normal size. What is the best method to do this?

    I thought of using the webbrowser control and creating the html code in my vb app to display. Then for each image link, just use java script for a popup window to show the image as normal. Is this the best method? Can all systems with IE 5 and up support a java script for a popup window?

    Thanks!!

  2. #2
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    There is a control called the ImageList control.
    That will store any number of pictures (there's probably some limit) in your app.

    Make a line of say 10 image controls (set the .Stretch property = True and the picture will shrink/grow to fit it), and set their picture to: ImageList.ListImages.Picture(0) or whatever value it is (I forget the syntax for that control)

    You could access the imagelist from n to n + 10, or whatever is appropriate, and then as a user clicks a left/right button, change those values as you need.

    Then when they click a box, load the picture into a main picture box.

    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width