How do I limit textbox only to accept text w/o using maskedcontrol?
Remaining quiet down here !!! BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
Im not sure what you want. Please explain. Do you want only certain letters to appear that are typed?
[email protected] http://www.StockHawk.net Stock Blog http://www.warpedai.com Day Trading Software
Code: Private Sub Text1_KeyPress(KeyAscii As Integer) If IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 End Sub
Jop - validweb.nl Alcohol doesn't solve any problems, but then again, neither does milk.
Code: Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii > 49 And KeyAscii < 57 Then KeyAscii = 0 End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii > 49 And KeyAscii < 57 Then KeyAscii = 0 End Sub
http://fcx.org/profile/sebs
Use this to only accept numbers Code: Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii < 33 Then Exit Sub If Not (IsNumeric(Chr(KeyAscii))) Then KeyAscii = 0 End Sub And this just to tease people Code: Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii < 33 Then Exit Sub If KeyAscii Mod 2 = 0 Then KeyAscii = 0 End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii < 33 Then Exit Sub If Not (IsNumeric(Chr(KeyAscii))) Then KeyAscii = 0 End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii < 33 Then Exit Sub If KeyAscii Mod 2 = 0 Then KeyAscii = 0 End Sub
Forum Rules