Create a Form that Cannot Be Activated

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Intermediate
Author:
Leo Koach

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This creates a form that cannot be activated (i.e., no activate event is ever fired and it always appears disabled). You still can, however, click on the form's title bar (if it has one) and move it.

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

Declarations:

Code: