title: Convert string to an integer
body: <p>I'm having trouble converting a String to Integer in VB.net</p>
  
  <p>I tried the following, but it wont quite work:</p>
  
  <p>Code:</p>
  
  <p>1:</p>
  
  <pre><code>Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.TextChanged
      My.Settings.ydelay = Convert.ToInt32(TextBox3.Text)
  End Sub
  </code></pre>
  
  <p>2:</p>
  
  <pre><code>My.Settings.ydelay = Textbox3.Text
  My.Settings.ydelay = Convert.ToInt32(Textbox3.Text)
  </code></pre>
  
  <p>3:</p>
  
  <pre><code>My.Settings.ydelay = Convert.ToInt32(Textbox.3Text)
  My.Settings.ydelay = Textbox3.Text
  </code></pre>
  
  <p>4:</p>
  
  <pre><code>My.Settings.ydelay = Textbox3.Text
  Convert.ToInt32(Textbox3.Text, My.Settings.ydelay)
  </code></pre>
  
  <p>I am pretty much going crazy over this maybe im just missing a little detail but I cant figure it out. Help would really be appreciated if you need more details let me know.</p>