the user should enter a digit instead??? what shall i use???
janeane_tho12n
0
Newbie Poster
Recommended Answers
Jump to PostTry this:
Private Sub Text1_KeyPress(KeyAscii As Integer) Select Case KeyAscii Case 48 To 57 ' These are acceptable keystrokes Case Else ' These are unacceptable, and should be ignored KeyAscii = 0 End Select End Sub
The numbers 48 to 57 are the ascii values of the …
All 3 Replies
purplegerbil
13
Junior Poster in Training
janeane_tho12n
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.