Dear mas wijdan,
saya kasih coding yang agak simple,
'untuk angka saja
Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 48 To 57
Exit Sub
Case 8
Exit Sub
Case 13
GoTo proses
Case Else
KeyAscii = 0
Exit Sub
End Select
'untuk hurup saja, coba modifikasi dari script diatas gampang koq.
Rgds
wijdan ibn masood <[EMAIL PROTECTED]> on 06/02/2007 06:19:07 AM
Please respond to [email protected]
To: [email protected]
cc: (bcc: Toni Rahayu/IT/domino_srv)
Subject: [indoprog-vb] gmn cara input pd textbox hanya angka
Gmn cara (kode) supaya input buat text box hanya bisa utk huruf, bukan angka?
dan sebaliknya, hanya bisa buat angka tdk bs utk huruf?
tq
Wijdan
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.
[Non-text portions of this message have been removed]
Toni Rahayu
PT. Omedata Electronics
IT Department
Hunting : (62-22) 6030805 Ext 121
Faxs : (62-22) 6030896
Homepage : http://toni.rahayu.tripod.com