|
-
Nov 12th, 2001, 11:16 PM
#1
Thread Starter
Frenzied Member
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!!
-
Nov 12th, 2001, 11:49 PM
#2
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|