You are here: DEVPPL Forum Programming Visual Basic Forum Script-archive
NOTIFICATIONS
54.097
MEMBERS
15.692
TOPICS
62.270
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

type numbers only on a txtbox, no letters allowed

Share your completed scripts.
0

Loading

type numbers only on a txtbox, no letters allowed

Postby Chubzyko » Wed Aug 27, 2008 6:41 pm

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

Login to get rid of ads

 

^ Back to Top