Private Sub btnClear_Click(sender As Object,e As EventArgs) HandlesbtnClear.Click txtResult.Clear() End Sub Private Sub btnExit_Click(sender As Object, e As EventArgs) HandlesbtnExit.Click Me.Close() End Sub Private Sub btn1_Click(sender As Object, e As EventArgs) Handles btn1.Click txtBox.Text="1" End Sub
What Iím not sure is how would I make it so that when I click a button, it gives that value to a variable. Then when I click either add or subtract, it will add or subtract it to the next number button I click. Do I make a loop or something? I have never learned VB or C, I only know java so Iím not really sure how you declare variables and write the arithmetic so any help would be highly appreciated.