Private Sub NumericKeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar = Chr(Keys.Back) Then
Else
If Not Char.IsDigit(e.KeyChar) Then
e.Handled = True
Beep()
Else
If Len(TextBox1.Text) > 0 Then
If Val(TextBox1.Text) > 105097565 Then
e.Handled = True
Beep()
End If
End If
End If
End If
End Sub
Or tell me how is: 1.NumericKeyPress event? 2.How to say e.KeyChar? 3.How to say IsDigit? 4.How to say Chr(ASCII number)? 5.How to handle e.Key? 6.How to system beep?