how would i go about making a random image (out of 51) visible? Heres my code.........
Private Sub Form_Load()
RndW = Int(Rnd * 51)
RImage(RndW).Visible = True
i know this is not right, could someone please key me in....thanks!
Printable View
how would i go about making a random image (out of 51) visible? Heres my code.........
Private Sub Form_Load()
RndW = Int(Rnd * 51)
RImage(RndW).Visible = True
i know this is not right, could someone please key me in....thanks!
I can't really see anything wring with that. as long as RImage is a control array.
no, its not a control array, that may have been my problem though, they are all named, RImage## (where ## is 1-50)
That code should work fine. but make sure that RImage is part of a Control Array.
To fix it. Make all the image's Name RImage and set the Index from 0 to 51.