title: Store textbox value into a string?
body: <p>I am making a random number generator in a form application and the user will type a number in a text box. When user clicks on the OK button. the text in the textbox will be stored in a string value. for example;</p>
  
  <pre><code>if (ButtonOK is clicked)
  {
      String a = textbox1;
      int b = int.Parse(a);
  }
  </code></pre>
  
  <p>Then the value of the textbox will become a labels value. for example:</p>
  
  <pre><code>b = label1.Text;
  </code></pre>
  
  <p>how do i do that?
  I would be really happy if anyone could help me solve this problem.</p>
  
  <p>SOLVED thanks to  Soner Gönül</p>