Private Sub txtBB_GotFocus()
SendKeys "{end}+{home}"
End Sub
你的那段代码不要了。

解决方案 »

  1.   

    症状?还是没反应?你在SendKeys "{end}+{home}"那里设置一个段点,看一下。
      

  2.   

    焦点顺序没有问题,它仅返回txtAA
      

  3.   

    哦,应该Private Sub txtAA_GotFocus()
    SendKeys "{end}+{home}"
    End Sub
      

  4.   

    shift+tab本来就会返回到tabindex-1的控件上
      

  5.   

    Vb把Tab截掉了,就像在CommandButton捉不到方向鍵一樣
      

  6.   

    一定要设置txtBB_KeyDown()吗?
    设定txtBB的TABINDEX比txtAA的TABINDEX大1不久可以了?
    然后设置txtAA的gotfocus()
            txtAA.SelStart = 0
            txtAA.SelLength = Len(txtUserName.Text)