richTextBox
-
can i get some unique value when I will press the backspace in the following event private void richTextBox1_TextChanged(object sender, System.EventArgs e)
-
can i get some unique value when I will press the backspace in the following event private void richTextBox1_TextChanged(object sender, System.EventArgs e)
-
Try it by selecting the keypressed property for the textbox then checking when backspace is pressed. You KeyPreview should also be true i think. e.KeyCode = BackSpace or Back or something like that.
Only on TextChanged event not in key press
-
Only on TextChanged event not in key press
No. You get what the event's name is indicating: The
Text
property has changed, nothing more, nothing less. For example, if your cursor is at the beginning of the text, pressing Backspace will not modify the text, so noTextChanged
event will occur. To find out how the text has changed you'll have to save the previous version of the text and compare it with the new value.Regards, mav -- Black holes are the places where god divided by 0...