I'm writing a small application. The only input needed are some numeric values. Can anyone tell me which code I have to write to manage that only numeric input is allowed in a text box.
The solution which I tried is generating a popup when someone uses a string in stead of numeric characters. But till now I can't get it working. The code i've tried is:
If Not TextBox1.Text = Nothing Then
If Asc(TextBox1.Text) < 47 Then
If Asc(TextBox1.Text) > 58 Then
MessageBox.Show("Only numeric input is allowed", , MessageBoxButtons.OK, MessageBoxIcon.Information)
Thanks in advance,