当前位置:编程学习 > VB >>

菜鸟求助:vb中有N个TEXT,如何实现在按回车的时候顺序切换?

vb中有N个TEXT,如何实现在按回车的时候顺序切换? --------------------编程问答-------------------- TABINDEX --------------------编程问答-------------------- Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        Text2.SetFocus
    End If
End Sub --------------------编程问答-------------------- Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = vbKeyReturn Then
        SendKeys "{TAB}"
    End If
End Sub
补充:VB ,  基础类
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,