title: VB Textbox accept only numbers prob
body: <pre><code>Private Sub TextBox1_textChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
  
      Dim intValue As Integer
      If Not Integer.TryParse(TextBox1.Text, intValue) OrElse intValue &lt; 1 OrElse intValue &gt; 10 Then
          TextBox1.Text = ""
      Else
          MsgBox(intValue)
  
  
      End If
  
  End Sub
  </code></pre>
  
  <p>here is my code , the textbox already accepts number only, when i press <code>"1"</code> the <code>textbox1.text = "1"</code>, but when i press AGAIN the <code>"1"</code> the first <code>"1"</code> is being overwrite .. same with the when i press <code>"2"</code> the textbox1.text is now only equal to <code>"2"</code>..</p>
  
  <p>help please?</p>