search this site the web
Showing posts with label Number. Show all posts
Showing posts with label Number. Show all posts

Tuesday, March 16, 2010

Allow only Numbers in Textbox

'Add 1 TextBox To Your Form.
'Insert the following code to your form:

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii < 47 Or KeyAscii > 57 Then KeyAscii = 0
End Sub