Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/06/2008, 14:17
Avellaneda
Colaborador
 
Fecha de Ingreso: enero-2008
Ubicación: Unas veces aquí, otras veces allí
Mensajes: 1.482
Antigüedad: 16 años, 3 meses
Puntos: 37
Respuesta: Expresiones regulares.

Hola, utiliza la función InStr en el evento KeyPress:


Código:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If InStr("/:*?""\<|>", Chr(KeyAscii)) > 0 Then
    MsgBox "SI contiene algun caracter"
Else
    MsgBox "NO contiene ningúno de los caracteres!"
End If
End Sub