问题描述
你好,
我创建了1个应用程序.其中必须有一个文本框.当我键入第一个字符时它没有被选择.事实上我不想选择它.在它之后,当我在第一个字母后键入第二个字母时要突出显示它.我突出显示它.然后我想输入第三个字母,然后总是用第二个位置替换.我不想那样.当我按右键时,只有我可以在文本框中添加第三个字母.但是evrytime按righ键.
所以我的主要问题是键入任何字符后如何自动设置光标位置?以及如何选择/突出显示除第一个字符以外的所有其他字符?
Hello,
I create 1 application.In that have to take one textbox.when i type 1st character then its not get select.infact i don''t want to selct it.after it when i type 2nd letter after 1st letter want to highlight it.i highlight it.then whane i type 3rd letterthen it alwys replace by 2nd position.I don''t want like that.when i press right key then only i can add 3rd lette r in textbox.but evrytime press righ key.
So my main question is that how to set cursor position automatically after type any character? and also how to select/highlight this all characters except 1st one?
推荐答案
这篇关于在文本框中设置光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!