e.Form.Controls("TextBox1").Text = 123456
e.Form.Controls("TextBox1").Select

此主题相关图片如下:微信截图_20241126161730.png

怎样实现光标在文本内容最后

此主题相关图片如下:微信截图_20241126161740.png

[此贴子已经被作者于2024/11/26 16:20:23编辑过]
http://www.foxtable.com/webhelp/topics/0761.htm
e.Form.Controls("TextBox1").Select
e.Form.Controls("TextBox1").SelectionStart = e.Form.Controls("TextBox1").Text.length