Ver Mensaje Individual
Antiguo 13-may-2008, 00:41   #2 (permalink)
Avellaneda
Avellaneda tiene algunos puntos positivos de karma
 
Avatar de Avellaneda
 
Fecha de Ingreso: enero-2008
Ubicación: Madrid
Mensajes: 820
Re: visual basic codigos par un tex

Hola, en el evento KeyPress del TextBox:

Código:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If InStr("0123456789", Chr(KeyAscii)) > 0 Then KeyAscii = 0
End Sub
Avellaneda está desconectado   Responder Citando