VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create a text box that ONLY excepts numbers

by Ryan Hartman (2 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

Create a text box that only allows Numbers in it, no letters great for Numeric Applications!

Inputs
Textbox: Name:Text1

Rate Create a text box that ONLY excepts numbers

Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
 Case 48 To 57
 Case 8
 Case Else
 Beep
 MsgBox "Visit:http://members.xoom.com/RYANMP5/ for more code!"
 KeyAscii = 0
 End Select

Download this snippet    Add to My Saved Code

Create a text box that ONLY excepts numbers Comments

No comments have been posted about Create a text box that ONLY excepts numbers. Why not be the first to post a comment about Create a text box that ONLY excepts numbers.

Post your comment

Subject:
Message:
0/1000 characters