Hi
I have a text box that only numbers can be put into as represented by the following code. I also want to allow backspaces but am not sure what number this would be
Private Sub txtAnchorFindInstanceOf_Ke
yPress(ByV
al sender As Object, ByVal e As System.Windows.Forms.KeyPr
essEventAr
gs) Handles txtAnchorFindInstanceOf.Ke
yPress
If e.KeyChar < Convert.ToChar(48) Or e.KeyChar > Convert.ToChar(57) Then e.KeyChar = Convert.ToChar(0)
End Sub
Start Free Trial