Unicamente numeros en textbox

25/01/2005 - 21:59 por Enrique Vargas | Informe spam
Hola amigos, alguien tiene el codigo para aceptar solamente numeros en un
textbox, ya la habia visto x aca.

Muchas Gracias.
 

Leer las respuestas

#1 Jaime
25/01/2005 - 22:55 | Informe spam
If e.KeyChar.IsDigit(e.KeyChar) Then
e.Handled = False
ElseIf e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
e.Handled = False
ElseIf e.KeyChar.IsControl(e.KeyChar) Then
e.Handled = False
Else
e.Handled = True
Beep()
End If

Preguntas similares