Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/07/2008, 18:57
Avatar de Peterpay
Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Respuesta: Validar Textbox Con Solo Letras Hecho Con Funcion

pues me iria mas porq invalidaras mejor el evento del keypress, si se

Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If Not Char.IsLetter(e.KeyChar) Then
e.Handled = True
Else
e.Handled = False
End If

End Sub

claro solo si es windows si es web usa regex
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5