title: check if there is any of the chars inside the textbox
body: <p>I have a chararray on global, button and textbox, how do I check if the word in textBox1.Text contains the letters in the chararray?</p>
  
  <pre><code>char[] letters = { 'a', 'e' };
  
  private void button1_Click(object sender, EventArgs e)
  {
      bool containsAnyLetter = textBox1.Text.IndexOfAny(letters) &gt;= 0;
  
      if (containsAnyLetter == true)
      {
          MessageBox.Show("your word contains a or e");
      }
  }
  </code></pre>