回车键时按钮获得焦点

来源:互联网 发布:淘宝单号网 编辑:程序博客网 时间:2024/06/05 12:24

Private Sub txtPassword_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
                          SendKeys "{Tab}"
            End If

End Sub 

原创粉丝点击