It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum Script-archive

type numbers only on a txtbox, no letters allowed

Share your completed scripts.

Moderator: dafunkymunky

type numbers only on a txtbox, no letters allowed

Postby chubzyko on Wed Aug 27, 2008 5: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."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Who is online

Users browsing this forum: No registered users and 0 guests