ciao ragazzi

devo impostare il tasto invio come il tasto tab (dalla text1 mi deve passare alla text2)

ho inserito il seguente codice ma non funge

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbEnter Then
Text2.SetFocus
End If
End Sub

e nel form ho impostato keypreview a true

dove sbaglio?

by
gyonny