![]() |
|||
Input Field Validation(Accept only numbers)
By: rekha singh | 29 Apr 2010 1:16 pm
The methods of validating inputs at field level ![]()
Private Sub txtNumbers_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtNumbers.KeyPress
If Asc(e.KeyChar) <> 8 Then
If Asc(e.KeyChar) < 48 Or Asc(e.KeyChar) > 57 Then
e.Handled = True
End If
End If
End Sub
|

.jpg)