title: How to get many values from same input box and assign them to variables?
body: <p>I have 4 buttons: <code>button_1</code> writes in the <code>InputBox</code> the number 1, <code>button_plus</code> writes in the same <code>Inputbox</code> <code>+</code>, <code>button_2</code> writes the number 2. Finally stands in the <code>Inputbox</code>: <code>1 + 2</code>.</p>
  
  <p>Now, I want to use the <code>button_Equals</code>, to get <code>1 + 2</code> from the <code>Inputbox</code> and assign them to a variable. I used <code>int.Parse()</code>, <code>Int32.Parse()</code> and <code>Convert.ToInt32()</code> to get both numbers 1 and 2:</p>
  
  <pre><code>r = int.Parse(textBox1.Text);
  s = int.Parse(textBox1.Text);
  </code></pre>
  
  <p>I'd like to assign 1 to <code>r</code> and 2 to <code>s</code>, but the program collapses when I click on the <code>Button_Equals</code> and it shows the following message: </p>
  
  <blockquote>
    <p>System.FormatException</p>
  </blockquote>