
15/06/2010, 11:11
|
| | Fecha de Ingreso: septiembre-2003 Ubicación: Tiuana BC. mex.
Mensajes: 14
Antigüedad: 21 años, 5 meses Puntos: 0 | |
Respuesta: Solo numeros en DataGridView VB.NET se que este tema ya es viejo pero al pasar por aqui y ver tanto codigo
y dado que otros programadores pueden buscar por este tema
creo que seria mejor reemplazar el SELECT CASE con el siguiente IF
If Char.IsDigit(e.KeyChar) = False And Char.IsControl(e.KeyChar) = False And Char.IsPunctuation(e.KeyChar) = False Then
e.Handled = True
Else
If Char.IsPunctuation(e.KeyChar) Then
If sender.Text.IndexOf(".") > 0 Then
e.Handled = True
Else
e.Handled = False
End If
End If
End If
saludos |