title: Convert textbox to float
body: <p>I've been looking for different ways to do it, but I still get the same error:</p>
  
  <p>What I've tried:</p>
  
  <pre><code>float e = (float)Convert.ToDouble(e_textBox.Text);
  bool valid = float.TryParse(e_textBox.Text.ToString(), out e);
  </code></pre>
  
  <p>And I get this error:</p>
  
  <pre><code>Error   1   Cannot implicitly convert type 'float' to 'System.EventArgs'
  </code></pre>
  
  <p>am I doing that wrong? Thank you.</p>