Mark1
October 14th, 2001, 01:41 PM
Hi,
I am making a game in VB. I have an image box which will be a dice (ImgDice) - which the player can use by clicking a button marked "roll". I have 6 other image boxes - one for each number with bitmaps loaded in - they are called ImgDice1 .. through to ImgDice6.
What I want to know is the code that I can attach to the `roll` button o RANDOMLY load up one of the dice numbers, but I want it to be completely random.
Any code for this...
Thanks
Mark
I am making a game in VB. I have an image box which will be a dice (ImgDice) - which the player can use by clicking a button marked "roll". I have 6 other image boxes - one for each number with bitmaps loaded in - they are called ImgDice1 .. through to ImgDice6.
What I want to know is the code that I can attach to the `roll` button o RANDOMLY load up one of the dice numbers, but I want it to be completely random.
Any code for this...
Thanks
Mark