I have a text box that contains a string. When I click the "backspace" button I want to remove the last character in a string. I have tried everything I can think of, and it should be working. But instead it always removes the last two characters, the various different ways I've tried. I wasn't sure if C# strings contain the null terminator or not, but I don't see that affecting it. So some how, it's removing the last character, and than overriding the new last character with the null terminator maybe? Any ideas?
Code:textEntryBox.Text = textEntryBox.Text.Substring(0, textEntryBox.Text.Length - 1);