title: How Do I total all the variables? in Vb.net
body: <p>How do I add all the variables in VB.net? I do what I was instructed to increment it by placing it outside. Now that I have done it whenever I press the button the output is only 95 and whenever I click multiple times on the picturebox with the incrementation the output is still the same from last time. Nothing is really happening</p>
  
  <pre><code>Private BibimbapQuantity = 1
  Private BulgogiQuantity = 1
  Private BibimbapPrice As Integer = 45 * BibimbapQuantity
  Private BulgogiPrice As Integer = 50 * BulgogiQuantity
  Private TotalPriceInt As Integer = BibimbapPrice + BulgogiPrice
  Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles buttonBibimbap.Click
      BibimbapQuantity += 1
      Me.DataGridView2.Rows.Add("Bibimbap", "1", BibimbapPrice)
  
  End Sub
  
  Private Sub buttonBulgogi_Click(sender As Object, e As EventArgs) Handles buttonBulgogi.Click
      BulgogiQuantity += 1
      Me.DataGridView2.Rows.Add("Bulgogi", "1", BulgogiPrice)
  
  End Sub
  
  Private Sub totalPrice_Click(sender As Object, e As EventArgs) Handles totalPrice.Click
  
  
  End Sub
  
  Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click
  
      totalPrice.Text = TotalPriceInt
  End Sub
  </code></pre>