title: Textbox Validation: Allow only alphabets and simple brackets "(" and ")" vb.net
body: <p>I want to validate textbox with keyPress event. It should allow alphabets and "(" and ")" I have written code for alphabet check but don't know how to check for "(" and ")". </p>
  
  <pre><code>     Private Sub txtBankName_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtBankName.KeyPress
      If Not (Asc(e.KeyChar) = 8) Then
          If Not ((Asc(e.KeyChar) &gt;= 97 And Asc(e.KeyChar) &lt;= 122) Or (Asc(e.KeyChar) &gt;= 65 And Asc(e.KeyChar) &lt;= 90) Or Asc(e.KeyChar) = 32) Then
              e.KeyChar = ChrW(0)
              e.Handled = True
          End If
      End If
  End Sub
  </code></pre>