Visual Basic - TAB

Life is soft - evento anual de software empresarial
 
Vista:

TAB

Publicado por MALE (18 intervenciones) el 01/11/2004 18:40:12
HOLA CHICOS:
ALGUIEN PODRIA DECIRME SI HAY ALGUNA FORMA DE PERMITIR AL USUARIO DE UN SISTEMA MOVER EL FOCUS DE UN TEXBOX A OTRO PRESIONANDO LA TECLA ENTER, PORQ EL CURSOR SOLO SE MUEVE CON LA TECLA TAB.

CHAS GRACIAS

MALE
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:TAB

Publicado por Luis Atondo (28 intervenciones) el 01/11/2004 18:56:22
Utiliza esto:

Function ValidaEnter(TeclaPres As Integer)
If TeclaPres = Enter Then
SendKeys "{Tab}"
ValidaEnter = 0 'evita el beep
Else
If TeclaPres = Arriba Then
SendKeys "+{Tab}"
End If
ValidaEnter = TeclaPres
End If
End Function

en el keypress del textbox indica esto:
Private Sub Text1_KeyPress(KeyAscii As Integer)
KeyAscii = ValidaEnter(KeyAscii)
End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar