I am using this line so that in a TextBox it is only numbers what it reads but when I make it delete with the back key it reads as if it were a letter; How do I solve it?
Private Sub txt_id_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txt_id.KeyPress
If Not Char.IsNumber(e.KeyChar) Then
e.Handled = False
MessageBox.Show("Introduzca sólo valores númericos")
End If