VB.NET 2010
I have My.Resources with several images (jpg files): IMG01.JPG, IMG02.JPG, ... IMG15.JPG
I can show an image in the picture box on my Splash form, no problem with:
[tt]
PictureBox1.Image = My.Resources.IMG15
[/tt]
How can I randomly pick one out of 15 images I have from my Resources?
I know how to pick a random number and I know how to format it to be 01, 02, etc, but if I do something like:
[tt]
PictureBox1.Image = My.Resources.IMG[blue] & MyRndNo[/blue]
[/tt]
it doesn't recognize the variable.
Have fun.
---- Andy
I have My.Resources with several images (jpg files): IMG01.JPG, IMG02.JPG, ... IMG15.JPG
I can show an image in the picture box on my Splash form, no problem with:
[tt]
PictureBox1.Image = My.Resources.IMG15
[/tt]
How can I randomly pick one out of 15 images I have from my Resources?
I know how to pick a random number and I know how to format it to be 01, 02, etc, but if I do something like:
[tt]
PictureBox1.Image = My.Resources.IMG[blue] & MyRndNo[/blue]
[/tt]
it doesn't recognize the variable.
Have fun.
---- Andy