title: Best way to validate an email address in WinForms
body: <p>I have a simple textbox with an email address.</p>
  
  <p>I need to know the best and easiest way to find out whether that email address is valid or not. I want to know how I can do that.</p>
  
  <p>I have tried using the below code but it does not display any message for me? Can anyone point the mistake I am making?</p>
  
  <pre><code>Public Function IsValidEmailAddress(ByVal email As String) As Boolean
      Try
          Dim ma As New MailAddress(email)
          MsgBox(True, MsgBoxStyle.Information)
      Catch
          MsgBox(False, MsgBoxStyle.Information)
      End Try
  End Function
  </code></pre>
  
  <p>I am calling this function like this:</p>
  
  <pre><code>Call IsValidEmailAddress(txtEmail.txt)
  </code></pre>