title: C++ Converting textbox content to a Float
body: <p>Tried carefully code from this thread </p>
  
  <p><a href="https://stackoverflow.com/questions/8718048/converting-textbox-string-to-float/8718108#8718108">Converting textbox string to float?</a></p>
  
  <p>Tried to leavemy question in a comment, but yet not allowed to do so... 
  The summary of that goes like having two text boxes, taking data from first, doing something, and returning the result to the second.</p>
  
  <pre><code>String^ i1 = Textbox1-&gt;Text;
  float rez = (float)(Convert::ToDouble(i1)*4);
  Textbox2-&gt;Text = rez.ToString();
  </code></pre>
  
  <p>and it works pretty good unless <code>Textbox1</code> got a float within itself (upd. it works ok with '65', but doesn't work with '65.5').
  Trying to execute that code - crushes a program</p>
  
  <pre><code>&gt;   Calc.exe!Calc::Form1::Button0_Click(System::Object^ sender = 0x01b29c58, System::EventArgs^ e = 0x01b45e40) Line 123 + 0x30 byte    C++
  </code></pre>