This is another way to restrict number inputs into textbox . using KEYPRESS Events
If Asc(e.KeyChar) <> 13 AndAlso Asc(e.KeyChar) <> 8 AndAlso Not IsNumeric(e.KeyChar) Then
MessageBox.Show("Only Numbers")
e.Handled = True
End If
End Sub
hope it helps ! thnks ..