on my filter, I remove invalid characters in my textBox, but after that I removed invalid characters, the “|” is positioned into first position,how can I to set to last position?
For example:
current position:
123 | a <- invalid character, my function in the _TextChanged event remove it and the position go to:
| 123
I want:
123 |
I hope this is clear.. Thanks in advance.
Set the
TextBox.SelectionStartproperty to the end of the string, and theTextBox.SelectionLengthproperty to0.Something like this: