So im making a SLot Machine.
I need the picture boxes to switch threw the images and here is my code.
Im using the imagelist to hold my 3 images so far (0-2)
PictureBox1.Image = myImageList.Images(Int(Rnd() * 3)).Image
I get a compiler error, it says the myImageList.Images(Int(Rnd() * 3)).Image expression
does not produce a value?
Also, does Int(Rnd() * 3) return an integer value from 1-3 or 0-2?
This post has been edited by Java Student: 24 March 2010 - 06:26 PM

New Topic/Question
Reply




MultiQuote





|