| You are here: DEVPPL ‹ Forum ‹ Programming ‹ Visual Basic Forum ‹ Script-archive |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
type numbers only on a txtbox, no letters allowed
1 post
• Page 1 of 1
0
type numbers only on a txtbox, no letters allowed
- Code: Select all
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii > Asc("9") Then
KeyAscii = 0
End If
End Sub
"Failure is the key to success, so try and try until you succeed."
- Chubzyko
- Reputation: 0
- Posts: 104
- Joined: Wed Jul 30, 2008 11:48 pm
- Location: Marikina City, Philippines
- Highscores: 0
- Arcade winning challenges: 0
type numbers only on a txtbox, no letters allowed - Sponsored results
- Sponsored results
|
|