
03/07/2008, 20:04
|
 | Colaborador | | Fecha de Ingreso: septiembre-2007 Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 17 años, 5 meses Puntos: 87 | |
Respuesta: Validar Textbox Con Solo Letras Hecho Con Funcion agrega las teclas validas a tu if is es key.Del o Key Supr q no haga un e.handled =true
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) & e.KeyChar<>Ctype(char,Keys.Del) Then o algo asi no estoy muy segur porq no soy vb.net
e.Handled = True
Else
e.Handled = False
End If
pero la idea es q compareas las teclas q sean validas parsa tu textbox |