the user should enter a digit instead??? what shall i use???
janeane_tho12n 0 Newbie Poster
Recommended Answers
Jump to PostPrivate Sub Text1_KeyPress(KeyAscii As Integer) Select Case KeyAscii Case 48 To 57 ' These are acceptable keystrokes Case 8 Case Else ' These are unacceptable, and should be ignored KeyAscii = 0 End Select End Sub
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.