|
-
Jan 25th, 2018, 07:38 AM
#7
Re: [RESOLVED] TextBox is printing backwards on form
 Originally Posted by Greyling
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|