Roy Doron
Roy Doron

Reputation: 595

How to randomize Between 3 different groups of photos?

I have a Major problem. can't think of a solution. Please help...

I have a Form with a pictureBox in it.

In my solution Resource folder, I've saved 3 different folders(a,b,c). Each folder contains 3 different photos.

Every 10Sec, I will show in the pictureBox, random Photo from a random folder.

It must be no repeat's with the photos. Once photo as be selected and shown in the pictureBox, it wont appear again.

Thank you for your help!

Upvotes: 0

Views: 173

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564413

First off, you'll get a repeat (or nothing) after 90 seconds, as you have only 9 photos changing every ten seconds...

That being said, you could just load all of your photos (or the information such as the name/location) into a collection up front, then sort it randomly. At that point, just show the images in order.

Upvotes: 3

Related Questions