Google Answers Logo
View Question
 
Q: VB.Net - putting random images into pictureboxes ( No Answer,   0 Comments )
Question  
Subject: VB.Net - putting random images into pictureboxes
Category: Computers > Programming
Asked by: rhodylady-ga
List Price: $5.00
Posted: 02 Dec 2002 16:36 PST
Expires: 01 Jan 2003 16:36 PST
Question ID: 118050
I'm writing a dice-rolling program and trying to keep it VERY SIMPLE. 
I have five PictureBoxes along the top of a form and six different
images of dice each showing the correct number of "pips".  I'd like to
randomly put one of the dice images into each of the PictureBoxes.

In VB 6 I'd use two control arrays of Images and have a loop go
through and "poof" - it was done. Something like this:

For X = 1 to 5
   ImageAtTop(x).Picture = Image(RandomNumberFrom1-6).Picture
Next X

Is there a simple way to do this is .Net?  I'm really not interested
in creating a class... but filling a collection would be do-able.

THANKS
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy