Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/12/2008, 12:34
Avatar de verdugo_2687
verdugo_2687
 
Fecha de Ingreso: septiembre-2008
Mensajes: 59
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Comprobación campo correo

yo tengo este ejemplo mira

Private Shared Function validarmail(ByVal mail As String) As Boolean
Return Regex.IsMatch(mail, "^([\w-]+\.)*?[\w-]+@[\w-]+\.([\w-]+\.)*?[\w]+$")
End Function


y en otro metodo

Private Sub valida()
Dim mail As String
mail = txtMail.Text
If Len(mail) > 0 Then
MsgBox(validarmail(mail), MsgBoxStyle.MsgBoxRight, "TU MAIL ES:")
End If
ENDSUB