
30/06/2007, 08:55
|
| | Fecha de Ingreso: mayo-2007
Mensajes: 74
Antigüedad: 17 años, 11 meses Puntos: 1 | |
Re: Impedir utilizar ciertos caracteres en un Textbox Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case Text1.SelStart
Case 0
If KeyAscii = Asc("!") Or KeyAscii = Asc("¿") Then KeyAscii = 0: Exit Sub
Case 1
Select Case KeyAscii
Case Asc("A") To Asc("Z")
KeyAscii = 0
Exit Sub
End Select
End Select
End Sub |