CodeItBetter Programming Another VB Programming Blog

How to Disallow numeric input in Text box

Posted on January 5, 2009
1
2
3
4
5
6
'Controls - How to Disallow numeric input in Text box
Private Sub Text1_KeyPress(KeyAscii As Integer)
    If IsNumeric( chr ( KeyAscii)) Then
        KeyAscii = 0
    End If
End Sub

Related posts:

  1. How to allow only number and only one occurence of decimal character in text box
  2. How to select all text with Ctrl+A in a text box
  3. How to control what type of alphanumeric character is entered into a text box at a particular postion in the text box.
  4. How to ignore Ctrl+V and Shift+Insert key in a text box.
  5. How to allow only number in a text box
  6. How to enter text in MSFlex Grid control without using text box.
  7. How to Prevent the user from entering invalid keys in a text box.
  8. How to use the Enter key act like TAB key while handling text boxes
  9. How to check whether given string is numeric or not without using IsNumeric function.
  10. How to disable beep when user presses the Enter key in TextBox

Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.