deleyd
asked on
delete last character in textbox
I have a textbox, textBox1, with some text in it. User presses 'Delete' key, I want to delete last character in textbox1. What is command to do that?
(sort of the opposite of textBox1.AppendText)
(cursor is not in textbox. Actually I have two textboxes I need to remove last character from.)
(sort of the opposite of textBox1.AppendText)
(cursor is not in textbox. Actually I have two textboxes I need to remove last character from.)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
textBox has a .Remove, that's what I needed.
Thank you everyone!
Oh I see, it's textBox.Text that has the .Remove
That's why I couldn't find it. Hmm, still can't find it. Oh I bet I have to look at String.Remove
textBox.Text gives me a string. Ah yes, that's it.
Thank you everyone!
Oh I see, it's textBox.Text that has the .Remove
That's why I couldn't find it. Hmm, still can't find it. Oh I bet I have to look at String.Remove
textBox.Text gives me a string. Ah yes, that's it.
textBox1.Text.Remove(textB
HOW TO: Remove Last Character from String
http://blogs.x2line.com/al/archive/2008/03/10/3369.aspx