title: Dice Battle Game
body: <p>I need help with a dice battle game for Visual Basic. </p>
  
  <p>A player and a computer are supposed to battle each other. When you click on the <strong>Roll</strong> button, it generates 6 random images - 3 for the PC and 3 for the PLAYER.</p>
  
  <p>I got everything down, but I can't seem to add the 3 images. The first image shows, but the second and third aren't showing up, nor the three for the PC. </p>
  
  <p>Here is my code</p>
  
  <pre><code>//=============================================================================
  Public Class Form1
  
  Dim randomObject As New Random() 'Create Random object
  Dim BestOfGamesCounter As Integer
  
  Private Sub RollDice_Click(sender As Object, e As EventArgs) Handles RollDice.Click
      If GameTextBox.Text &lt;= "0" Then
          MsgBox("Number of Games &gt; 0", MsgBoxStyle.Critical)
          Application.Restart()
      End If
  
      If GameTextBox.Text &gt; "0" Then
          BestOfGamesCounter = Convert.ToInt32(GameTextBox.Text)
      End If
  
  
      DisplayDie(d1PictureBox)
      DisplayDie(d2PictureBox)
      DisplayDie(d3PictureBox)
  
      DisplayDie(UserDice1)
      DisplayDie(UserDice2)
      DisplayDie(UserDice3)
  End Sub
  
  Sub DisplayDie(diePictureBox As PictureBox)
      'generate random integer in range 1 to 6
      Dim face As Integer = randomObject.Next(1, 7)
  
      'retrieve specific die image from resources
      Dim pictureResource = My.Resources.ResourceManager.GetObject(String.Format("die{0}", face))
  
      'Convert pictureResource to type Image and display in ImageBox
      diePictureBox.Image = CType(pictureResource, Image)
  End Sub ' DisplaDie
  
  Private Sub ExitButton_Click(sender As Object, e As EventArgs) Handles ExitButton.Click
      Dim response As MsgBoxResult
      response = MsgBox("Do you want to exit?", MsgBoxStyle.YesNo Or MsgBoxStyle.Question)
      If response = MsgBoxResult.Yes Then
          Me.Dispose()
      End If
  End Sub
  
  Private Sub GameTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles GameTextBox.Validating
      If GameTextBox.Text &gt; "0" Then
          Do
              MsgBox(GameTextBox.Text + " round(s) will be played GOOD LUCK")
          Loop While GameTextBox.Text = "STOP"
      End If
      GameTextBox.Enabled = False
  End Sub
  </code></pre>
  
  <p>End Class</p>