![]() |
|
![]() | ||
|
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 |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
There are no comments at this time. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |