Quote Originally Posted by Greyling View Post
What conditions would make a textbox start doing that??
How can I avoid it in future?
Thnx
That was already answered. If you replace the text in the textbox with new text, the cursor is placed at the beginning of the textbox.
Your use of UCase is replacing the text in the textbox with a completely new string so the cursor ends up at the beginning of the text instead of at the end.
The way you avoid it in the future is to not replace the whole string with new text, or manually set the cursor to the end of the string (i.e. your work around) or use code like couttsj provided to change the character to uppercase before it is added to the textbox so you don't replace the text in the textbox itself.