Hello all, I am new here so I'm not sure if this is the right place. I am currently trying to make my final project for vb class and I've been stumped for at least five days on this code. I'm trying to make a program to emulate the game "farkle". My problem is that when I press the "roll" button on my form, its supposed to show six randomly generated dice on six buttons. My problem is that no matter what I do, it won't show on the dice. Here is my code. I condensed it because I am on my phone and there is no internet at my grandmas house:
Dim dicerand1 As Integer ... Dim Dicerand6 As Integer Dim diceRandom As New Random Dicerand1 = dicerandom.next(1, 7) ... Dicerand2 = dicerandom.next(1, 7) '=====Case for the first random dice===== Select Case diceRand1 Case 1 BtnShowDice1.backgroundImage = My.Resources.small_dice_1 ... Case 6 Btnshowdice1.backgroundImage = My.resources.small_dice_6 End Select ... '=====case for the sixth random dice===== Select case dicerand6 Case 1 Btnshowdice6.backgroundImage = My.Resources.small_dice_1 ... Case 6 Btnshowdice6.backgroundImage = my.resources.small_dice_6 End Select