Disallow Empty Fields for All TextBoxes on a Form

Category:
Forms and Controls
Type:
Modules
Difficulty:
Beginning
Author:
I.T.Raytchev

Version Compatibility: Visual Basic 6

More information:
Here is one simple way to validate a form to ensure no textboxes are empty. Follow the instructions in the comments.

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

Declarations:

Code: