title: How I play my audios with match all text in text box
body: <pre><code>        string line = textBox1.Text.ToString();
  
          string[] words = line.Split();
  
          foreach (string word in words)
          {
  
              if (word.Contains("ඉ"))
              {
                  SoundPlayer sndplayr = new SoundPlayer(WindowsFormsApplication1.Properties.Resources._a);
                  sndplayr.Play();
              }
  
              if (word.Contains("අ"))
              {
                  SoundPlayer sndplayr = new SoundPlayer(WindowsFormsApplication1.Properties.Resources.la);
                  sndplayr.Play();
              }
  
              }
  
          }
          }
  </code></pre>
  
  <p>i used this but it play only text box last character audio.i want to play the other characters also. so what can i do. please help me............</p>