Enlaces patrocinados:

Trucos de Visual Basic 6.0 Pasar de un TextBox a otro al pulsar Enter

Insertar tres TextBox y escribir el siguiente código:

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub


otra forma:

Insertar tres TextBox, cambiar la propiedad KeyPreview del formulario a True y escribir el siguiente código:

Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub



Comentarios sobre Pasar de un TextBox a otro al pulsar Enter


Elias dice:

Gracias Amigo buenísimo aporte, Realmente muy pero muy bueno.
Comentario publicado 04/09/2011 7:56:00

Victor dice:

Funciono en mi programa gracias buen truco
Comentario publicado 17/11/2011 15:44:00
Dejar un comentario

Nombre:

Mail:

Web:

Comentario:

Código de seguridad

Captcha

Inserta el código de seguridad