1

我的一个客户的文本框有问题。当他单击文本框中的字符串时,光标总是跳到字符串的末尾。这是一个标准的 VB.net 2005 文本框,具有多行 true。在我的开发机器上它可以正常工作。我点击一个字符串的中间,可以编辑我点击的地方。谁能提出什么问题?

他已经在终端服务器下和本地笔记本电脑上运行了该程序,并且遇到了同样的问题。

TIA,约翰

4

1 回答 1

1

Is it possible to observe the user? For example, the user might be pressing shift-tab when they are past the text-box, and refering to that as "clicking" the text box.

You can always force behavior like:

Private Sub TextBox1_GotFocus(sender As Object, e As System.EventArgs) Handles TextBox1.GotFocus
    TextBox1.SelectionStart = 0
End Sub
于 2013-04-08T15:50:08.333 回答