title: In C# a Try block, the catch section i want a exception to be thrown if in my textbock a int is entered?
body: <p>So if you push the enter button, and the user enters a number i want the program to throw out a exception that no integers may be entered in the text block.</p>
  
  <pre><code>    private void btnEnter_Click(object sender, RoutedEventArgs e)
      {         
          try
          {
              string[] words = { txtInfo.Text };
  
              foreach (string f in words)
              {
                  lstResults.Items.Add(f);
              }
              txtInfo.Text = "";  
          }
          catch (Exception ex)
          {
  
          }   
      }
  </code></pre>
  
  <p>Very small project for school but would like to specify the exception.</p>