相应keydown事件,如果为回车,将焦点交给下一个控件If KeyCode = vbkeyreturn Then 
text2.SetFocus
endif

解决方案 »

  1.   

    '如果回车不想发出叮叮响(打开音箱听一下),可以这样
    Private Sub Text1_KeyPress(KeyAscii As Integer)
      If KeyAscii = 13 Then
        KeyAscii = 0
        Text2.SetFocus
      End If
    End Sub
      

  2.   

    If KeyAscii = 13 Then
    KeyAscii = 0
    Text2.SetFocus
    End If