Input Validation Module

Category:
Forms and Controls
Type:
Modules
Difficulty:
Beginning
Author:
Tom McGeehan

Version 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 Sub
See the Enum in the declarations for other validation options.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: