-
Thumbnail navbar
I have a file containing 20 or 30 photos and i want the user to be able to see 4 or 5 of them at a time and use a forward or back button to scroll through the thumbnails, clicking on one when they want to see it bigger.
I know how to load the images to the boxes but not based on button clicks to go through them all. Do i use an array? Is there a native control for this?
Thanks in advance for any help!!
-
A control array of Image controls should work nicely, then you can move forward, or backward, based on the current control index.
-
So how would i assign the array? Not too sure how to assign them as the contents of the directory would change all the time.
Psuedo code something like this?
navigate to folder containing files
if files exist
loop through and enter into array
navigate through array using buttons that -1 or +1 to the array index
Am i on the right track?
Thanks for helping a newbie understand some fundamentals...
-
You can use a Folder control (I think) and find all the BMP, JPG, JPEG, and GIF files in it. Then, count how many there are, and index your top bound at that. Then simply load the pictures one by one into this array.
-
Thanks Again!!
I got it to work...thanks for the advice!!!!