To make text box to accept only numbers, in key press event of that textbox u can code like this
10/27/08
, Posted by Gregfox at 5:58 AM
If Char.IsDigit(e.KeyChar) = False And Char.IsControl(e.KeyChar) = False Then
e.Handled = True
MsgBox("Please enter valid number ")
End If
Currently have 0 comments: