Hi
Im making a game where it had 5 buttons with a picturebox behind each button that has visible = false. when the button is clicked it makes the visble = true.
The problem im having is that i have 5 pictures and the aim of the game is to find the Queen of hearts. How do i get the 5 different pictures of the cards not to repeat as i dont want the same card to be shown twice as this could show the queen of hearts everytime
im using visual basic 2005 express edition
i know i need to use some kind of array but im quite new to vb and am struggling to find a solution. atm im using a ridiculously long code that is just picking a random number assigned with a card, but i want them to be not repeated.
Thanks
Im making a game where it had 5 buttons with a picturebox behind each button that has visible = false. when the button is clicked it makes the visble = true.
The problem im having is that i have 5 pictures and the aim of the game is to find the Queen of hearts. How do i get the 5 different pictures of the cards not to repeat as i dont want the same card to be shown twice as this could show the queen of hearts everytime
im using visual basic 2005 express edition
i know i need to use some kind of array but im quite new to vb and am struggling to find a solution. atm im using a ridiculously long code that is just picking a random number assigned with a card, but i want them to be not repeated.
Thanks