Im using
and it wont let me use backspace. How would I make it so I can use backspace?Code:Private Sub NumericKeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim allowedChars As String = "0123456789" If allowedChars.IndexOf(e.KeyChar) = -1 Then e.Handled = True End If End Sub




Reply With Quote