Esto es una duda simple... aver si me dan una mano , como hago para que en un textbox al presionar "ENTER" haga determinada funcion? por ejemplo.. enviar el texto a otro textbox. asi de simple..
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
MsgBox "Pulsaste enter"
End If
End Sub
Emm.. no me funciona :huh:
Private Sub txt1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
MsgBox ("ooas")
End If
End Sub
Y nada.. hace el sonido parecido al "beep" y nada mas
Fijate si el nombre del control esta bien escrito en el codigo y en el control, porque a mi me funciona de 10
Osea, fijate si el control tambien se llama txt1
Sancho.Mazorka :¬¬
Si fijate bien en el nombre del control...
hola como estas, proba asi:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
MsgBox "Hola"
KeyAscii = 0
End If
End Sub
Ambos funcionan , me equivoque con el nombre del textbox pido disculpas :-[
Gracias por su ayuda, salute :-*