Input Validation Module
Category:
Forms and ControlsType:
ModulesDifficulty:
BeginningAuthor:
Tom McGeehanVersion Compatibility: Visual Basic 6
More information:
Copy All Code into a module. Use like this:
Private Sub Text1_KeyPress(KeyAscii As Integer) KeyAscii = VI(KeyAscii, Char) 'allows only characters End SubSee the Enum in the declarations for other validation options.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: