I have been building a calculator and I am having a problem with my back space button, it removes a number from the textBox, but as soon as I enter another number it lists all the numers I have pressed, it is still storing all the numbers???
How do I remove the numbers from the total as well as the textBox?, here's the code for my remove button:
VB Code:
Private Sub btnBkSp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBkSp.Click txtDisplay.Text = Mid(txtDisplay.Text, 1, txtDisplay.Text.Length - 1) End Sub
Thanks for any help.




Reply With Quote