help with selecting random pictures
Visual Basic: Random Strings!

Please could someone help with the following question

I'm new to VB and need help, My problem is that I need to know how I can write the correct code which enables a button when each time it is pressed, it randomly selects a picture from 6 different pictures and show this on the screen. The pictures are bmp and would be stored on the pc - I have for now put them in c:\pictures location with the file names 1.Bmp 2.Bmp etc...

I am unsure how to write the correct code to select the pictures at random from the file.


-question by steve

Reply