title: C# Catch Exception
body: <p>Which exception would I use in a try/catch to find out when the user has inputted data in the wrong format?</p>
  
  <p>Example:</p>
  
  <pre><code>try
  {
      string s = textBox1.Text;
      // User inputs an int
      // Input error
      MessageBox.Show(s);
  }
  catch(what exception)
  {
      MessageBox.Show("Input in wrong format");
  }
  </code></pre>
  
  <p>Thanks</p>